Exemplo n.º 1
0
        public void IsDisposedShouldBeTrue()
        {
            var stub = new DisposableObjectStub();

            stub.Dispose();

            Assert.That(stub.IsDisposed, Is.True);
        }
Exemplo n.º 2
0
        public void DisposingUnmanagedResourcesShouldBeCalled()
        {
            var stub = new DisposableObjectStub();

            stub.Dispose();

            Assert.That(stub.IsDisposingUnmanagedResourcesCalled, Is.True);
        }
Exemplo n.º 3
0
        public void OnDisposingShouldBeCalled()
        {
            var stub = new DisposableObjectStub();

            stub.Dispose();

            Assert.That(stub.IsOnDisposingBeenCalled, Is.True);
        }