public void Of_DisposableReference_Disposes() { var disposable = new DisposeTTests.ClassImpl(); Dispose.Of(ref disposable); Assert.That(disposable.IsDisposed); }
public void Of_NullReference_DoesNothing() { DisposeTTests.ClassImpl obj = null; Dispose.Of(ref obj); }