BackEnd\LoggingService_Tests.cs (11)
338LoggerDescription description = CreateLoggerDescription(className, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true);
355LoggerDescription configurableDescription = CreateLoggerDescription(configurableClassName, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true);
356LoggerDescription distributedDescription = CreateLoggerDescription(distributedClassName, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true);
392LoggerDescription configurableDescriptionA = CreateLoggerDescription(configurableClassNameA, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true);
393LoggerDescription configurableDescriptionB = CreateLoggerDescription(configurableClassNameB, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true);
437LoggerDescription description = CreateLoggerDescription(className, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true);
465LoggerDescription description = CreateLoggerDescription(className, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true);
530LoggerDescription description = CreateLoggerDescription(className, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true);
553loggerDescriptions.Add(CreateLoggerDescription(configurableClassName, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true));
554loggerDescriptions.Add(CreateLoggerDescription(distributedClassName, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true));
615LoggerDescription description = CreateLoggerDescription(className, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true);
Definition\ToolsVersion_Tests.cs (23)
32ProjectCollection e = new ProjectCollection();
76ProjectCollection e = new ProjectCollection();
93ProjectCollection e = new ProjectCollection();
110ProjectCollection e = new ProjectCollection();
128ProjectCollection e = new ProjectCollection();
156TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(null, new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4), ProjectCollection.GlobalProjectCollection.ProjectRootElementCache);
177ProjectCollection p = new ProjectCollection();
184TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(service, BuildEventContext.Invalid, ProjectCollection.GlobalProjectCollection.ProjectRootElementCache);
200ProjectCollection p = new ProjectCollection();
206TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(service, BuildEventContext.Invalid, ProjectCollection.GlobalProjectCollection.ProjectRootElementCache);
220ProjectCollection p = new ProjectCollection();
287ProjectCollection p = new ProjectCollection();
322ProjectCollection p = new ProjectCollection();
355ProjectCollection p = new ProjectCollection();
383ProjectCollection p = new ProjectCollection();
413ProjectCollection p = new ProjectCollection();
516ProjectCollection p = new ProjectCollection();
554ProjectCollection p = new ProjectCollection();
594ProjectCollection p = new ProjectCollection();
662ProjectCollection p = new ProjectCollection();
746ProjectCollection p = new ProjectCollection();
854ProjectCollection p = new ProjectCollection();
897TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(null, new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4), ProjectCollection.GlobalProjectCollection.ProjectRootElementCache);
Evaluation\ProjectRootElementCache_Tests.cs (8)
30ProjectCollection.GlobalProjectCollection.UnloadAllProjects();
40ProjectCollection.GlobalProjectCollection.UnloadAllProjects();
52ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.Get("c:\\foo", (p, c) => null, true, false);
63ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.Get("c:\\foo", (p, c) => ProjectRootElement.Create("c:\\bar"), true, false);
74ProjectRootElement projectRootElement2 = ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.Get(rootedPath, (p, c) => { throw new InvalidOperationException(); }, true, false);
91projectRootElement = ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.Get(projectPath, (p, c) => { throw new InvalidOperationException(); }, true, false);
95ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.DiscardStrongReferences();
99Assert.Null(ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.TryGet(projectPath));
Instance\ProjectInstance_Internal_Tests.cs (12)
287XmlReader.Create(new StringReader("<Project></Project>")), ProjectCollection.GlobalProjectCollection.ProjectRootElementCache, false, false));
298var projectCollection = new ProjectCollection();
692public delegate ProjectInstance ProjectInstanceFactory(string file, ProjectRootElement xml, ProjectCollection collection);
756var projectCollection = env.CreateProjectCollection().Collection;
847ProjectCollection projectCollection = new ProjectCollection();
880ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().Collection;
908ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().Collection;
945private static ProjectInstance GetProjectInstance(string content, HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null)
957Project project = new Project(reader, globalProperties, toolsVersion ?? ObjectModelHelpers.MSBuildDefaultToolsVersion, projectCollection ?? ProjectCollection.GlobalProjectCollection);
983private static ProjectInstance GetSampleProjectInstance(HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null)
1016private static void CreateMockToolsetIfNotExists(string toolsVersion, ProjectCollection projectCollection)
1018ProjectCollection pc = projectCollection;