public void DisposeCalledWhenFixtureImplementsIDisposable()
 {
     DisposableFixture fixture = new DisposableFixture();
     TestBuilder.RunTestFixture(fixture);
     Assert.IsTrue(fixture.disposeCalled);
 }
Esempio n. 2
0
 public void DisposeCalledOnceWhenFixtureImplementsIDisposable()
 {
     var fixture = new DisposableFixture();
     TestBuilder.RunTestFixture(fixture);
     Assert.That(fixture.disposeCalled, Is.EqualTo(1));
 }