public void CallProtectedMethodDisposingUnmanagedResourcesWhenUserCodeCallsDispose() { DisposableObjectStub stub = new DisposableObjectStub(); stub.Dispose(); Assert.That(stub.IsDisposingUnmanagedResourcesCalled, Is.True); }
public void CallProtectedMethodOnDisposingWhenUserCodeCallsDispose() { DisposableObjectStub stub = new DisposableObjectStub(); stub.Dispose(); Assert.That(stub.IsOnDisposingBeenCalled, Is.True); }
public void ReturnTrueWhenHittingIsDisposedGivenTheObjectIsDisposed() { DisposableObjectStub stub = new DisposableObjectStub(); stub.Dispose(); Assert.That(stub.IsDisposed, Is.True); }