public void Dispose_UpdatesProperty() { // Act _downloader.Dispose(); // Assert Assert.IsTrue(_mockDownloader.IsDisposed); }
/// <summary> /// Disposes this object and properly cleans up resources. /// </summary> protected void Dispose(bool disposing) { if (!_isDisposed) { if (disposing) { _companyService.Dispose(); _quoteService.Dispose(); _downloader.Dispose(); } _isDisposed = true; } }