Esempio n. 1
0
 void CreateSolutionWithTwoProjects(string projectName1, string projectName2)
 {
     solutionHelper = new SolutionHelper();
     solutionHelper.AddProjectToSolution(projectName1);
     solutionHelper.AddProjectToSolution(projectName2);
     projects = solutionHelper.Solution.Projects;
 }
        public void BuildProject_ProjectIsSecondProjectInSolution_CorrectProjectPassedToProjectBuilder()
        {
            CreateSolutionBuild(@"d:\projects\MyProject\MySolution.sln");
            solutionHelper.AddProjectToSolution("FirstProject");
            string          projectFileName = @"d:\projects\MyProject\MyProject.csproj";
            TestableProject expectedProject = solutionHelper.AddProjectToSolutionWithFileName("MyProject", projectFileName);

            solutionBuild.BuildProject("Debug", "MyProject.csproj", true);

            Assert.AreEqual(expectedProject, projectBuilder.ProjectPassedToBuild);
        }
Esempio n. 3
0
 void AddProjectToSolution(string projectName)
 {
     solutionHelper.AddProjectToSolution(projectName);
 }
Esempio n. 4
0
 void CreateSolutionWithSingleProject(string projectName)
 {
     solutionHelper = new SolutionHelper();
     solutionHelper.AddProjectToSolution(projectName);
     projects = (Projects)solutionHelper.Solution.Projects;
 }