Esempio 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());
		}
Esempio 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());
        }
		private static Settings GetMockSettingsWithAlreadyBuiltApps()
		{
			var settings = new MockSettings();
			var storageData = new XmlData("BuiltApps");
			storageData.AddAttribute("StoragePath", storageData.Name);
			settings.SetValue(storageData.Name, storageData);
			var appsStorage = new AppsStorage(settings);
			appsStorage.AddApp(new WindowsAppInfo("Rebuildable app", Guid.NewGuid(), DateTime.Now)
			{
				SolutionFilePath = "A.sln"
			});
			appsStorage.AddApp(new WindowsAppInfo("Non-Rebuildable app ", Guid.NewGuid(), DateTime.Now));
			return settings;
		}
Esempio n. 4
0
        private static Settings GetMockSettingsWithAlreadyBuiltApps()
        {
            var settings    = new MockSettings();
            var storageData = new XmlData("BuiltApps");

            storageData.AddAttribute("StoragePath", storageData.Name);
            settings.SetValue(storageData.Name, storageData);
            var appsStorage = new AppsStorage(settings);

            appsStorage.AddApp(new WindowsAppInfo("Rebuildable app", Guid.NewGuid(), DateTime.Now)
            {
                SolutionFilePath = "A.sln"
            });
            appsStorage.AddApp(new WindowsAppInfo("Non-Rebuildable app ", Guid.NewGuid(), DateTime.Now));
            return(settings);
        }