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 OrderTestCollections(IEnumerable testCollections) { return testCollections.OrderBy(collection => collection.DisplayName); } } }