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

            stub.Dispose();

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

            stub.Dispose();

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

            stub.Dispose();

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