public void GetFixtureMethods() { FixtureMethods = new ConeFixtureMethods(); var testSink = new Mock<IConeTestMethodSink>().Object; var setup = new ConeFixtureSetup(new ConeMethodClassifier(FixtureMethods, testSink)); setup.CollectFixtureMethods(typeof(DerivedFixture)); }
public void are_classified_only_once() { var methods = new ConeFixtureMethods(); var testSink = new Mock<IConeTestMethodSink>().Object; var setup = new ConeFixtureSetup(new ConeMethodClassifier(methods, testSink)); setup.CollectFixtureMethods(typeof(DerivedFixture)); Check.That(() => methods.BeforeEach.Count == 1); }