Created
February 18, 2016 22:37
-
-
Save jameswritescode/be1a7f4a85e3acb40f74 to your computer and use it in GitHub Desktop.
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Xunit.Abstractions; | |
using Xunit.Sdk; | |
namespace DotNetMVCTest | |
{ | |
public class DefinitionOrderer : ITestCaseOrderer | |
{ | |
public IEnumerable<TTestCase> OrderTestCases<TTestCase>(IEnumerable<TTestCase> testCases) | |
where TTestCase : ITestCase | |
{ | |
return testCases.ToList(); | |
} | |
} | |
} |
This file contains 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
using Xunit; | |
[TestCaseOrderer("DotNetMVCTest.DefinitionOrderer", "DotNetMVC") | |
public class SampleTests | |
{ | |
[Fact] | |
public void Test1() | |
{ | |
Assert.True(false); | |
} | |
[Fact] | |
public void Test2() | |
{ | |
Assert.True(false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment