Inheritance: IConeFixtureMethodSink
Example #1
0
 public void GetFixtureMethods()
 {
     FixtureMethods = new ConeFixtureMethods();
     var testSink = new Mock<IConeTestMethodSink>().Object;
     var setup = new ConeFixtureSetup(new ConeMethodClassifier(FixtureMethods, testSink));
     setup.CollectFixtureMethods(typeof(DerivedFixture));
 }
Example #2
0
 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);
 }