Created
August 7, 2016 03:48
-
-
Save phil-scott-78/d58c9991c062ce1bfef814206f5c1624 to your computer and use it in GitHub Desktop.
Reverse order xunit test cases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// apply assembly wide via [assembly: TestCaseOrderer("FullyNamespacedTypeName", "AssemblyName")] | |
public class ReverseOrderTestCaseOrderer : ITestCaseOrderer | |
{ | |
public IEnumerable<TTestCase> OrderTestCases<TTestCase>(IEnumerable<TTestCase> testCases) where TTestCase : ITestCase | |
{ | |
var results = testCases.ToList(); | |
results.Reverse(); | |
return results; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment