public CustomConvention()
        {
            Classes
            .Where(x => factMethods.Filter(x).Any());

            Cases = new MethodFilter()
                    .HasOrInherits <FactAttribute>();

            ClassExecution
            .CreateInstancePerCase()
            .SetUpTearDown(PrepareFixtureData, DisposeFixtureData);

            InstanceExecution
            .SetUpTearDown(InjectFixtureData, fixture => { });
        }
Example #2
0
 bool HasAnyFactMethods(Type type)
 {
     return(factMethods.Filter(type).Any());
 }