18 lines
580 B
C#
18 lines
580 B
C#
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using Xunit;
|
|||
|
using Xunit.Abstractions;
|
|||
|
[assembly: CollectionBehavior(DisableTestParallelization = true)]
|
|||
|
[assembly: TestCollectionOrderer("UnitTest.CollectionOrder.DisplayNameOrderer", "UnitTest")]
|
|||
|
|
|||
|
namespace UnitTest.CollectionOrder
|
|||
|
{
|
|||
|
public class DisplayNameOrderer : ITestCollectionOrderer
|
|||
|
{
|
|||
|
public IEnumerable<ITestCollection> OrderTestCollections(IEnumerable<ITestCollection> testCollections)
|
|||
|
{
|
|||
|
return testCollections.OrderBy(collection => collection.DisplayName);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|