예제 #1
0
		void CreateCodeModel()
		{
			helper = new ProjectContentHelper();
			msbuildProject = ProjectHelper.CreateTestProject();
			helper.SetProjectForProjectContent(msbuildProject);
			codeModel = new CodeModel(helper.ProjectContent);
		}
예제 #2
0
		protected void CreateCodeModel()
		{
			msbuildProject = ProjectHelper.CreateTestProject();
			
			projectService = MockRepository.GenerateStub<IPackageManagementProjectService>();
			fileService = MockRepository.GenerateStub<IPackageManagementFileService>();
			dteProject = new Project(msbuildProject, projectService, fileService);
			codeModelContext.DteProject = dteProject;
			
			codeModel = new CodeModel(codeModelContext, dteProject);
			
			msbuildProject.SetAssemblyModel(assemblyModel);
			project.Stub(p => p.AssemblyModel).Return(assemblyModel);
			
			fileService
				.Stub(fs => fs.GetCompilationUnit(msbuildProject))
				.WhenCalled(compilation => compilation.ReturnValue = CreateCompilation());
		}
예제 #3
0
		void CreateCodeModel(IProjectContent projectContent)
		{
			codeModel = new CodeModel(projectContent);
		}