public SD.FileProjectItem AddFileToFirstProjectInSolution(string include) { TestableProject project = FakeProjectService .FakeOpenProjects .Select(p => p as TestableProject) .First(); return project.AddFile(include); }
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); }
public SD.FileProjectItem AddFileToSecondProjectInSolution(string include) { TestableProject project = FakeProjectService .AllProjects .Select(p => p as TestableProject) .Skip(1) .First(); return(project.AddFile(include)); }
SDProject.FileProjectItem AddFileToProjectAndProjectContent(TestableProject project, string fileName) { helper.CompilationUnitHelper.SetFileName(fileName); return project.AddFile(fileName); }