public void ShouldDisposeWriterOnDispose() { MockWriter writer = new MockWriter(); IDisposable logger = new TextLogger(writer); Assert.IsFalse(writer.DisposeCalled); logger.Dispose(); Assert.IsTrue(writer.DisposeCalled); }