public void ShouldSetIsDisposeToTrue() { var target = new DisposableAttributes(); ((IDisposable)target).Dispose(); Assert.IsTrue(((IDisposableAndTracked)target).IsDisposed); }
public void ShouldInvokeAllDisposeAssociatedMethodsOnlyOnce() { var target = new DisposableAttributes(); ((IDisposable)target).Dispose(); ((IDisposable)target).Dispose(); Assert.AreEqual(2, target.DisposeCount); }
public void ShouldImplementIDisposable() { var target = new DisposableAttributes(); Assert.IsNotNull(target as IDisposable); }