Skip to content

Instantly share code, notes, and snippets.

@plioi
Created September 18, 2013 00:51
Show Gist options
  • Save plioi/6602950 to your computer and use it in GitHub Desktop.
Save plioi/6602950 to your computer and use it in GitHub Desktop.
public class CustomConvention : Convention
{
public CustomConvention()
{
Classes
.NameEndsWith("Tests");
Cases
.Where(method => method.IsVoid());
ClassExecution
.CreateInstancePerTestClass()
.SortCases((caseA, caseB) => String.Compare(caseA.Name, caseB.Name, StringComparison.Ordinal));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment