当前位置: 首页>>代码示例>>C#>>正文


C# Helpers.TestableProject类代码示例

本文整理汇总了C#中PackageManagement.Tests.Helpers.TestableProject的典型用法代码示例。如果您正苦于以下问题:C# TestableProject类的具体用法?C# TestableProject怎么用?C# TestableProject使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TestableProject类属于PackageManagement.Tests.Helpers命名空间,在下文中一共展示了TestableProject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateProperties

		void CreateProperties()
		{
			project = new TestableDTEProject();
			msbuildProject = project.TestableProject;
			var factory = new ProjectPropertyFactory(project);
			properties = new Properties(factory);
		}
开发者ID:asiazhang,项目名称:SharpDevelop,代码行数:7,代码来源:ProjectPropertyTests.cs

示例2: CreateProperties

		void CreateProperties()
		{
			project = new TestableDTEProject();
			msbuildProject = project.TestableProject;
			var factory = new ProjectPropertyFactory(project);
			properties = new ICSharpCode.PackageManagement.EnvDTE.Properties(factory);
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:7,代码来源:ProjectPropertyTests.cs

示例3: TestableDTEProject

		public TestableDTEProject(TestableProject project)
			: this(
			project,
			new FakePackageManagementProjectService(),
			new FakeFileService(project))
		{
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:7,代码来源:TestableDTEProject.cs

示例4: CreateProjectItems

		void CreateProjectItems()
		{
			project = new TestableDTEProject();
			msbuildProject = project.TestableProject;
			projectItems = project.ProjectItems;
			fakeFileService = project.FakeFileService;
		}
开发者ID:GMRyujin,项目名称:SharpDevelop,代码行数:7,代码来源:ProjectItemTests.cs

示例5: CreateReferences

		void CreateReferences()
		{
			project = new TestableDTEProject();
			msbuildProject = project.TestableProject;
			fakeProjectService = project.FakeProjectService;
			references = project.Object.References;
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:7,代码来源:ReferencesTests.cs

示例6: CreateReference

		void CreateReference(string name)
		{
			project = new TestableDTEProject();
			msbuildProject = project.TestableProject;
			referenceProjectItem = msbuildProject.AddReference(name);
			fakeProjectService = project.FakeProjectService;
			CreateReference(project, referenceProjectItem);
		}
开发者ID:rbrunhuber,项目名称:SharpDevelop,代码行数:8,代码来源:Reference3Tests.cs

示例7: CreateProjectItemProperties

		void CreateProjectItemProperties()
		{
			project = new TestableDTEProject();
			msbuildProject = project.TestableProject;
			msbuildFileProjectItem = new SD.FileProjectItem(msbuildProject, SD.ItemType.Compile);
			projectItem = new ProjectItem(project, msbuildFileProjectItem);
			properties = projectItem.Properties;
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:8,代码来源:ProjectItemPropertyTests.cs

示例8: CreateProjectItems

		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;
		}
开发者ID:asiazhang,项目名称:SharpDevelop,代码行数:8,代码来源:ProjectItemTests.cs

示例9: CreateProjectWithOneFile

		void CreateProjectWithOneFile(string fileName)
		{
			project = new TestableDTEProject();
			msbuildProject = project.TestableProject;
			fakeFileService = project.FakeFileService;
			
			fileProjectItem = new FileProjectItem(msbuildProject, ItemType.Compile) {
				FileName = fileName
			};
		}
开发者ID:rbrunhuber,项目名称:SharpDevelop,代码行数:10,代码来源:FileCodeModel2Tests.cs

示例10: CreateProjectReference

		TestableProject CreateProjectReference()
		{
			project = new TestableDTEProject();
			msbuildProject = project.TestableProject;
			TestableProject referencedProject = ProjectHelper.CreateTestProject();
			ProjectReferenceProjectItem referenceProjectItem = msbuildProject.AddProjectReference(referencedProject);
			fakeProjectService = project.FakeProjectService;
			CreateReference(project, referenceProjectItem);
			return referencedProject;
		}
开发者ID:rbrunhuber,项目名称:SharpDevelop,代码行数:10,代码来源:Reference3Tests.cs

示例11: CreateReference

		void CreateReference(string name)
		{
			project = new TestableDTEProject();
			msbuildProject = project.TestableProject;
			referenceProjectItem = msbuildProject.AddReference(name);
			fakeProjectService = project.FakeProjectService;
			CreateReference(project, referenceProjectItem);
			IWorkbench workbench = MockRepository.GenerateStub<IWorkbench>();
			ICSharpCode.SharpDevelop.SD.Services.AddService(typeof(IWorkbench), workbench);
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:10,代码来源:Reference3Tests.cs

示例12: CreateProjectWithOneFileInProjectFolder

		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);
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:10,代码来源:FileProjectItemsTests.cs

示例13: CreateProjectItemProperties

		void CreateProjectItemProperties()
		{
			project = new TestableDTEProject();
			msbuildProject = project.TestableProject;
			msbuildFileProjectItem = new SD.FileProjectItem(msbuildProject, SD.ItemType.Compile);
			projectItem = new ProjectItem(project, msbuildFileProjectItem);
			properties = (ICSharpCode.PackageManagement.EnvDTE.Properties)projectItem.Properties;
			
			IWorkbench workbench = MockRepository.GenerateStub<IWorkbench>();
			ICSharpCode.SharpDevelop.SD.Services.AddService(typeof(IWorkbench), workbench);
		}
开发者ID:Rew,项目名称:SharpDevelop,代码行数:11,代码来源:ProjectItemPropertyTests.cs

示例14: CreateTestProject

		public static TestableProject CreateTestProject(
			ISolution parentSolution,
			string name,
			string fileName = null)
		{
			var createInfo = new ProjectCreateInformation(parentSolution, new FileName(fileName ?? (@"d:\projects\Test\TestProject\" + name + ".csproj")));
			
			var project = new TestableProject(createInfo);
			((ICollection<IProject>)parentSolution.Projects).Add(project);
			return project;
		}
开发者ID:kristjan84,项目名称:SharpDevelop,代码行数:11,代码来源:ProjectHelper.cs

示例15: CreateCodeModel

		void CreateCodeModel()
		{
			helper = new ProjectContentHelper();
			msbuildProject = ProjectHelper.CreateTestProject();
			helper.SetProjectForProjectContent(msbuildProject);
			codeModel = new CodeModel(helper.ProjectContent);
		}
开发者ID:rbrunhuber,项目名称:SharpDevelop,代码行数:7,代码来源:CodeModelTests.cs


注:本文中的PackageManagement.Tests.Helpers.TestableProject类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。