public CustomConvention() { Classes .Where(x => factMethods.Filter(x).Any()); Cases = new MethodFilter() .HasOrInherits <FactAttribute>(); ClassExecution .CreateInstancePerCase() .SetUpTearDown(PrepareFixtureData, DisposeFixtureData); InstanceExecution .SetUpTearDown(InjectFixtureData, fixture => { }); }
bool HasAnyFactMethods(Type type) { return(factMethods.Filter(type).Any()); }