本文整理汇总了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);
}
示例2: CreateProperties
void CreateProperties()
{
project = new TestableDTEProject();
msbuildProject = project.TestableProject;
var factory = new ProjectPropertyFactory(project);
properties = new ICSharpCode.PackageManagement.EnvDTE.Properties(factory);
}
示例3: TestableDTEProject
public TestableDTEProject(TestableProject project)
: this(
project,
new FakePackageManagementProjectService(),
new FakeFileService(project))
{
}
示例4: CreateProjectItems
void CreateProjectItems()
{
project = new TestableDTEProject();
msbuildProject = project.TestableProject;
projectItems = project.ProjectItems;
fakeFileService = project.FakeFileService;
}
示例5: CreateReferences
void CreateReferences()
{
project = new TestableDTEProject();
msbuildProject = project.TestableProject;
fakeProjectService = project.FakeProjectService;
references = project.Object.References;
}
示例6: CreateReference
void CreateReference(string name)
{
project = new TestableDTEProject();
msbuildProject = project.TestableProject;
referenceProjectItem = msbuildProject.AddReference(name);
fakeProjectService = project.FakeProjectService;
CreateReference(project, referenceProjectItem);
}
示例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;
}
示例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;
}
示例9: CreateProjectWithOneFile
void CreateProjectWithOneFile(string fileName)
{
project = new TestableDTEProject();
msbuildProject = project.TestableProject;
fakeFileService = project.FakeFileService;
fileProjectItem = new FileProjectItem(msbuildProject, ItemType.Compile) {
FileName = fileName
};
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例15: CreateCodeModel
void CreateCodeModel()
{
helper = new ProjectContentHelper();
msbuildProject = ProjectHelper.CreateTestProject();
helper.SetProjectForProjectContent(msbuildProject);
codeModel = new CodeModel(helper.ProjectContent);
}