コード例 #1
0
		public SD.FileProjectItem AddFileToFirstProjectInSolution(string include)
		{
			TestableProject project = FakeProjectService
				.FakeOpenProjects
				.Select(p => p as TestableProject)
				.First();
			return project.AddFile(include);
		}
コード例 #2
0
		void CreateProjectWithOneFileInProjectFolder(
			string include,
			string projectFileName = @"c:\projects\MyProject\MyProject.csproj")
		{
			project = new TestableDTEProject();
			msbuildProject = project.TestableProject;
			fakeFileService = project.FakeFileService;
			msbuildProject.FileName = new FileName(projectFileName);
			msbuildProject.AddFile(include);
		}
コード例 #3
0
        public SD.FileProjectItem AddFileToSecondProjectInSolution(string include)
        {
            TestableProject project = FakeProjectService
                                      .AllProjects
                                      .Select(p => p as TestableProject)
                                      .Skip(1)
                                      .First();

            return(project.AddFile(include));
        }
コード例 #4
0
		SDProject.FileProjectItem AddFileToProjectAndProjectContent(TestableProject project, string fileName)
		{
			helper.CompilationUnitHelper.SetFileName(fileName);
			return project.AddFile(fileName);
		}