Skip to content

Instantly share code, notes, and snippets.

@jameswritescode
Created February 18, 2016 22:37
Show Gist options
  • Save jameswritescode/be1a7f4a85e3acb40f74 to your computer and use it in GitHub Desktop.
Save jameswritescode/be1a7f4a85e3acb40f74 to your computer and use it in GitHub Desktop.
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();
}
}
}
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