public void StopMonitoringAsync_NoException() { // arrange var mockedFileSystem = A.Fake <IFileSystemManager>(); var mockedTimer = A.Fake <ITimer>(); var loader = A.Fake <ITradeDataLoader>(); const int periodSeconds = 5; const string monitoringDirectory = "X:\\folder1\\folder2\\"; var monitor = new TradeDataMonitor(mockedFileSystem, mockedTimer, loader, periodSeconds, monitoringDirectory); // inject monitor.StartMonitoring(); // act monitor.StopMonitoringAsync().Wait(); // assert Assert.AreEqual(false, monitor.IsMonitoringStarted); }