Пример #1
0
		public EditorViewModel(EditorPluginLoader plugins, Settings settings)
		{
			this.plugins = plugins;
			Settings.Current = settings;
			service = new OnlineService();
			AvailableProjects = new List<ProjectNameAndFontWeight>();
			Error = Resources.GetApiKeyHere;
			SetupLogger();
			VersionNumber = new VersionNumber();
			plugins.FindAndLoadAllPlugins();
			RegisterCommands();
			SetApiKey(LoadDataFromRegistry("ApiKey"));
			SetInitialContentProject();
			ConnectToOnlineServiceAndTryToLogin();
			EditorPlugins = new List<EditorPluginView>();
			messageViewModel = new PopupMessageViewModel(service);
			messageViewModel.MessageUpdated += RaisePopupMessageProperties;
		}
Пример #2
0
		public void CheckCurrentVersion()
		{
			var versionNumber = new VersionNumber();
			Version expectedVersion = Assembly.GetExecutingAssembly().GetName().Version;
			Assert.AreEqual(expectedVersion, versionNumber.Version);
		}
Пример #3
0
		public void VersionNumberForNightlyBetaReleaseIsMajorPlusMinorPlusBuild()
		{
			var versionNumber = new VersionNumber("1.1.1.0");
			Assert.AreEqual("v1.1.1", versionNumber.ToString());
		}
Пример #4
0
		public void VersionNumberForStableMilestoneReleaseIsMajorPlusMinor()
		{
			var versionNumber = new VersionNumber("1.1.0.0");
			Assert.AreEqual("v1.1", versionNumber.ToString());
		}