public void SaveWatchedFileToSettingsOnDispose() { var settings = new MockSettings(); var fileWatcher = new MockFileWatcher(); fileWatcher.SetFile(FilePath); fileWatcher.Dispose(); Assert.AreEqual(FilePath, settings.GetValue(FileWatcher.SettingsKey, "")); }