コード例 #1
0
        public void SamplesSolutionNeedsToBeAvailable()
        {
            var samplesSolutionFilePath = SolutionExtensions.GetSamplesSolutionFilePath();

            Assert.IsTrue(File.Exists(samplesSolutionFilePath));
            Assert.IsTrue(samplesSolutionFilePath.Contains(SolutionExtensions.SamplesSolutionFilename));
        }
コード例 #2
0
        public void RequestRequild()
        {
            int     numberOfRequests = service.NumberOfBuildRequests;
            AppInfo app = AppBuilderTestExtensions.TryGetAlreadyBuiltApp("LogoApp", PlatformName.Windows);

            app.SolutionFilePath = SolutionExtensions.GetSamplesSolutionFilePath();
            viewModel.AppListViewModel.RequestRebuild(app);
            Assert.AreEqual(numberOfRequests + 1, service.NumberOfBuildRequests);
        }
コード例 #3
0
        public void GetSpecificCSharpProjectFromDeltaEngineSamplesSolution()
        {
            string engineSamplesSolution = SolutionExtensions.GetSamplesSolutionFilePath();

            Assert.IsTrue(File.Exists(engineSamplesSolution));
            var          solutionLoader = new SolutionFileLoader(engineSamplesSolution);
            ProjectEntry logoAppProject = solutionLoader.GetCSharpProject("LogoApp");

            Assert.IsNotNull(logoAppProject);
            Assert.AreEqual("LogoApp", logoAppProject.Name);
        }
コード例 #4
0
        public string GetAbsoluteSolutionFilePath(string contentProjectName)
        {
            string customFilePath;

            if (!availableContentWithCodeProjects.TryGetValue(contentProjectName, out customFilePath))
            {
                return("");
            }
            if (!String.IsNullOrEmpty(customFilePath))
            {
                return(customFilePath);
            }
            if (contentProjectName.Contains("Tutorials"))
            {
                return(SolutionExtensions.GetTutorialsSolutionFilePath());
            }
            return(SolutionExtensions.GetSamplesSolutionFilePath());
        }
コード例 #5
0
 public string GetAbsoluteSolutionFilePath(string contentProjectName)
 {
     if (String.IsNullOrWhiteSpace(contentProjectName))
     {
         return("");
     }
     if (contentProjects.ContainsKey(contentProjectName))
     {
         return(contentProjects[contentProjectName]);
     }
     if (IsStarterKit(contentProjectName))
     {
         return(SolutionExtensions.GetSamplesSolutionFilePath());
     }
     if (IsTutorial(contentProjectName))
     {
         return(SolutionExtensions.GetTutorialsSolutionFilePath());
     }
     return("");
 }