Exemplo n.º 1
0
        private void OnAppBuildResultRecieved(AppBuildResult receivedBuildResult)
        {
            AppInfo appInfo = AppInfoExtensions.CreateAppInfo(
                Path.Combine(AppListViewModel.AppStorageDirectory, receivedBuildResult.PackageFileName),
                receivedBuildResult.Platform, receivedBuildResult.PackageGuid, DateTime.Now);

            appInfo.SolutionFilePath = codeSolutionPathOfBuildingApp;
            AllowBuildingAppsAgain();
            TriggerBuiltAppRecieved(appInfo, receivedBuildResult.PackageFileData);
        }
        public void CreateAppInfoFromBuildResult()
        {
            const string AppName     = "MockApp";
            var          buildResult = new AppBuildResult(AppName, PlatformName.Windows)
            {
                PackageFileName = AppName + ".app",
                PackageGuid     = Guid.NewGuid(),
            };
            const string AppDirectory = "DirectoryForApps";
            AppInfo      appInfo      = AppInfoExtensions.CreateAppInfo(Path.Combine(AppDirectory, buildResult.PackageFileName),
                                                                        buildResult.Platform, buildResult.PackageGuid, DateTime.Now);

            Assert.AreEqual(buildResult.ProjectName, appInfo.Name);
            Assert.AreEqual(buildResult.Platform, appInfo.Platform);
            Assert.AreEqual(Path.Combine(AppDirectory, buildResult.PackageFileName), appInfo.FilePath);
            Assert.AreEqual(buildResult.PackageGuid, appInfo.AppGuid);
        }
Exemplo n.º 3
0
		public void AppBuildResultdMessageMustBeRestorable()
		{
			var resultMessage = new AppBuildResult("CoolProject", PlatformName.Windows);
			MessageTestExtensions.AssertObjectWhenSavedAndRestoredByToString(resultMessage);
		}
Exemplo n.º 4
0
        public void AppBuildResultdMessageMustBeRestorable()
        {
            var resultMessage = new AppBuildResult("CoolProject", PlatformName.Windows);

            MessageTestExtensions.AssertObjectWhenSavedAndRestoredByToString(resultMessage);
        }