public void DisposeAlsoDisposesTheFilesContainer() { LoggerDataContainer loggerDataContainer = new LoggerDataContainer(new Logger()); bool disposedBefore = loggerDataContainer.FilesContainer._disposed; loggerDataContainer.Dispose(); bool disposedAfter = loggerDataContainer.FilesContainer._disposed; Assert.IsFalse(disposedBefore); Assert.IsTrue(disposedAfter); }
public void DisposeUpdatesTheDisposedField() { LoggerDataContainer loggerDataContainer = new LoggerDataContainer(new Logger()); bool disposedBefore = loggerDataContainer._disposed; loggerDataContainer.Dispose(); bool disposedAfter = loggerDataContainer._disposed; Assert.IsFalse(disposedBefore); Assert.IsTrue(disposedAfter); }