void CreateCodeModel() { helper = new ProjectContentHelper(); msbuildProject = ProjectHelper.CreateTestProject(); helper.SetProjectForProjectContent(msbuildProject); codeModel = new CodeModel(helper.ProjectContent); }
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()); }
void CreateCodeModel(IProjectContent projectContent) { codeModel = new CodeModel(projectContent); }