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

            fileWatcher.SetFile(FilePath);
            fileWatcher.Dispose();
            Assert.AreEqual(FilePath, settings.GetValue(FileWatcher.SettingsKey, ""));
        }