void CreateItemOperations() { fakeProjectService = new FakePackageManagementProjectService(); fakeFileService = new FakeFileService(null); dte = new DTE(fakeProjectService, fakeFileService); itemOperations = (ItemOperations)dte.ItemOperations; }
void CreateProjectItems() { project = new TestableDTEProject(); msbuildProject = project.TestableProject; projectItems = project.ProjectItems; fakeFileService = project.FakeFileService; }
void CreateDTE() { fakeProjectService = new FakePackageManagementProjectService(); fakeProjectService.OpenSolution = new SD.Solution(new SD.MockProjectChangeWatcher()); fakeFileService = new FakeFileService(null); dte = new DTE(fakeProjectService, fakeFileService); }
void CreateDTE() { fakeProjectService = new FakePackageManagementProjectService(); OpenSolution(@"d:\projects\MyProject\MyProject.sln"); fakeFileService = new FakeFileService(null); dte = new DTE(fakeProjectService, fakeFileService); }
void CreateProjectItems(string fileName = @"d:\projects\MyProject\MyProject.csproj") { project = new TestableDTEProject(); msbuildProject = project.TestableProject; msbuildProject.FileName = new FileName(fileName); projectItems = (ProjectItems)project.ProjectItems; fakeFileService = project.FakeFileService; }
void CreateDTE(string fileName = @"d:\projects\MyProject\MyProject.sln") { ICSharpCode.SharpDevelop.SD.InitializeForUnitTests(); fakeProjectService = new FakePackageManagementProjectService(); OpenSolution(fileName); fakeFileService = new FakeFileService(null); dte = new DTE(fakeProjectService, fakeFileService); }
public TestableDTEProject( TestableProject project, FakePackageManagementProjectService projectService, FakeFileService fileService) : base(project, projectService, fileService) { this.TestableProject = project; this.FakeProjectService = projectService; this.FakeFileService = fileService; }
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); }
void CreateProjectWithOneFile(string fileName) { project = new TestableDTEProject(); msbuildProject = project.TestableProject; fakeFileService = project.FakeFileService; fileProjectItem = new FileProjectItem(msbuildProject, ItemType.Compile) { FileName = fileName }; }
TestableSharpDevelopProjectSystem( MSBuildBasedProject project, IPackageManagementFileService fileService, IPackageManagementProjectService projectService, FakeLogger logger) : base(project, fileService, projectService) { FakeFileService = (FakeFileService)fileService; FakeProjectService = (FakePackageManagementProjectService)projectService; Logger = logger; }
TestableSharpDevelopProjectSystem(MSBuildBasedProject project, IPackageManagementFileService fileService) : base(project, fileService) { FakeFileService = (FakeFileService)fileService; Logger = FakeOutputMessagesView; }
OpenPackageReadMeMonitor CreateMonitor(string packageId) { fileService = new FakeFileService(null); project = new FakePackageManagementProject(); return new OpenPackageReadMeMonitor(packageId, project, fileService); }
IOpenPackageReadMeMonitor CreateReadMeMonitor(string packageId) { fileService = new FakeFileService(null); return new OpenPackageReadMeMonitor(packageId, fakeProject, fileService); }