Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 43a088c2c4
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (21 sloc) 0.746 kb
using System;
using Fixie.Conventions;
namespace Fixie.Samples.Skipped
{
public class CustomConvention : Convention
{
public CustomConvention()
{
Classes
.Where(type => type.IsInNamespace(GetType().Namespace))
.NameEndsWith("Tests");
Methods
.Where(method => method.IsVoid());
CaseExecution
.Skip(@case => @case.Method.HasOrInherits<SkipAttribute>() || @case.Method.DeclaringType.HasOrInherits<SkipAttribute>());
ClassExecution
.CreateInstancePerTestClass()
.SortCases((caseA, caseB) => String.Compare(caseA.Name, caseB.Name, StringComparison.Ordinal));
}
}
}
Jump to Line
Something went wrong with that request. Please try again.