コード例 #1
0
 void CreateItemOperations()
 {
     fakeProjectService = new FakePackageManagementProjectService();
     fakeFileService = new FakeFileService(null);
     dte = new DTE(fakeProjectService, fakeFileService);
     itemOperations = (ItemOperations)dte.ItemOperations;
 }
コード例 #2
0
		void CreateProjectItems()
		{
			project = new TestableDTEProject();
			msbuildProject = project.TestableProject;
			projectItems = project.ProjectItems;
			fakeFileService = project.FakeFileService;
		}
コード例 #3
0
ファイル: DTETests.cs プロジェクト: OmerRaviv/SharpDevelop
		void CreateDTE()
		{
			fakeProjectService = new FakePackageManagementProjectService();
			fakeProjectService.OpenSolution = new SD.Solution(new SD.MockProjectChangeWatcher());
			fakeFileService = new FakeFileService(null);
			dte = new DTE(fakeProjectService, fakeFileService);
		}
コード例 #4
0
ファイル: DTETests.cs プロジェクト: rbrunhuber/SharpDevelop
		void CreateDTE()
		{
			fakeProjectService = new FakePackageManagementProjectService();
			OpenSolution(@"d:\projects\MyProject\MyProject.sln");
			fakeFileService = new FakeFileService(null);
			dte = new DTE(fakeProjectService, fakeFileService);
		}
コード例 #5
0
		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;
		}
コード例 #6
0
ファイル: DTETests.cs プロジェクト: Paccc/SharpDevelop
		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);
		}
コード例 #7
0
		public TestableDTEProject(
			TestableProject project,
			FakePackageManagementProjectService projectService,
			FakeFileService fileService)
			: base(project, projectService, fileService)
		{
			this.TestableProject = project;
			this.FakeProjectService = projectService;
			this.FakeFileService = fileService;
		}
コード例 #8
0
 public TestableDTEProject(
     TestableProject project,
     FakePackageManagementProjectService projectService,
     FakeFileService fileService)
     : base(project, projectService, fileService)
 {
     this.TestableProject    = project;
     this.FakeProjectService = projectService;
     this.FakeFileService    = fileService;
 }
コード例 #9
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);
		}
コード例 #10
0
		void CreateProjectWithOneFile(string fileName)
		{
			project = new TestableDTEProject();
			msbuildProject = project.TestableProject;
			fakeFileService = project.FakeFileService;
			
			fileProjectItem = new FileProjectItem(msbuildProject, ItemType.Compile) {
				FileName = fileName
			};
		}
コード例 #11
0
 TestableSharpDevelopProjectSystem(
     MSBuildBasedProject project,
     IPackageManagementFileService fileService,
     IPackageManagementProjectService projectService,
     FakeLogger logger)
     : base(project, fileService, projectService)
 {
     FakeFileService    = (FakeFileService)fileService;
     FakeProjectService = (FakePackageManagementProjectService)projectService;
     Logger             = logger;
 }
コード例 #12
0
		TestableSharpDevelopProjectSystem(
			MSBuildBasedProject project,
			IPackageManagementFileService fileService,
			IPackageManagementProjectService projectService,
			FakeLogger logger)
			: base(project, fileService, projectService)
		{
			FakeFileService = (FakeFileService)fileService;
			FakeProjectService = (FakePackageManagementProjectService)projectService;
			Logger = logger;
		}
コード例 #13
0
		TestableSharpDevelopProjectSystem(MSBuildBasedProject project, IPackageManagementFileService fileService)
			: base(project, fileService)
		{
			FakeFileService = (FakeFileService)fileService;
			Logger = FakeOutputMessagesView;
		}
コード例 #14
0
 TestableSharpDevelopProjectSystem(MSBuildBasedProject project, IPackageManagementFileService fileService)
     : base(project, fileService)
 {
     FakeFileService = (FakeFileService)fileService;
     Logger          = FakeOutputMessagesView;
 }
コード例 #15
0
 OpenPackageReadMeMonitor CreateMonitor(string packageId)
 {
     fileService = new FakeFileService(null);
     project = new FakePackageManagementProject();
     return new OpenPackageReadMeMonitor(packageId, project, fileService);
 }
コード例 #16
0
 IOpenPackageReadMeMonitor CreateReadMeMonitor(string packageId)
 {
     fileService = new FakeFileService(null);
     return new OpenPackageReadMeMonitor(packageId, fakeProject, fileService);
 }