Exemplo n.º 1
0
		public void LoadWatchedFileFromSettingsOnInitialization()
		{
			var settings = new MockSettings();
			string fullFilePath = Path.GetFullPath(FilePath);
			settings.SetValue(FileWatcher.SettingsKey, fullFilePath);
			var fileWatcher = new MockFileWatcher();
			Assert.AreEqual(fullFilePath, fileWatcher.GetCurrentPath());
		}
Exemplo n.º 2
0
        public void LoadWatchedFileFromSettingsOnInitialization()
        {
            var    settings     = new MockSettings();
            string fullFilePath = Path.GetFullPath(FilePath);

            settings.SetValue(FileWatcher.SettingsKey, fullFilePath);
            var fileWatcher = new MockFileWatcher();

            Assert.AreEqual(fullFilePath, fileWatcher.GetCurrentPath());
        }