1 write to _taskHost
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskHost_Tests.cs (1)
87_taskHost = new TaskHost(_mockHost, entry, _elementLocation, null /*Don't care about the callback either unless doing a build*/);
52 references to _taskHost
Microsoft.Build.Engine.UnitTests (52)
BackEnd\TaskHost_Tests.cs (52)
88_taskHost.LoggingContext = new TaskLoggingContext(_loggingService, BuildEventContext.Invalid); 101_taskHost.BuildProjectFile("ProjectFile", new string[] { "Build" }, projectProperties, targetOutputs); 130_taskHost.LogErrorEvent(customBuildError); 155_taskHost.LogWarningEvent(customBuildWarning); 180_taskHost.LogMessageEvent(customMessage); 196_taskHost.ContinueOnError = false; 198_taskHost.LogErrorEvent(new BuildErrorEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender")); 204_taskHost.ContinueOnError = true; 205_taskHost.ConvertErrorsToWarnings = true; 210_taskHost.LogErrorEvent(new BuildErrorEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender")); 216_taskHost.ContinueOnError = true; 217_taskHost.ConvertErrorsToWarnings = false; 223_taskHost.LogErrorEvent(new BuildErrorEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender")); 238_taskHost.LogErrorEvent(null); 249_taskHost.LogWarningEvent(null); 260_taskHost.LogMessageEvent(null); 271_taskHost.LogCustomEvent(null); 281_taskHost.LogErrorEvent(new BuildErrorEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender")); 295_taskHost.LogWarningEvent(new BuildWarningEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender")); 309_taskHost.LogMessageEvent(new BuildMessageEventArgs("message", "HelpKeyword", "senderName", MessageImportance.High)); 323_taskHost.LogCustomEvent(new MyCustomBuildEventArgs("testCustomBuildEvent")); 339_taskHost.LogErrorEvent(new MyCustomBuildErrorEventArgsNotSerializable("SubCategory")); 353_taskHost.LogWarningEvent(new MyCustomBuildWarningEventArgsNotSerializable("SubCategory")); 367_taskHost.LogMessageEvent(new MyCustomMessageEventNotSerializable("message")); 381_taskHost.LogCustomEvent(new MyCustomBuildEventArgsNotSerializable("testCustomBuildEvent")); 397_taskHost.LogCustomEvent(new ExtendedCustomBuildEventArgs("testExtCustomBuildEvent", "ext message", null, null)); 410_taskHost.LogErrorEvent(new ExtendedBuildErrorEventArgs("testExtCustomBuildError", null, null, null, 0, 0, 0, 0, "ext err message", null, null)); 423_taskHost.LogWarningEvent(new ExtendedBuildWarningEventArgs("testExtCustomBuildWarning", null, null, null, 0, 0, 0, 0, "ext warn message", null, null)); 436_taskHost.LogMessageEvent(new ExtendedBuildMessageEventArgs("testExtCustomBuildMessage", "ext message", null, null, MessageImportance.Normal)); 452Assert.True(_taskHost.IsRunningMultipleNodes); 455_taskHost.LogErrorEvent(e); 473_taskHost.LogWarningEvent(e); 474Assert.True(_taskHost.IsRunningMultipleNodes); 492_taskHost.LogMessageEvent(e); 493Assert.True(_taskHost.IsRunningMultipleNodes); 512_taskHost.LogCustomEvent(e); 513Assert.True(_taskHost.IsRunningMultipleNodes); 531Assert.False(_taskHost.IsRunningMultipleNodes); // "Expect IsRunningMultipleNodes to be false with 1 node" 541Assert.True(_taskHost.IsRunningMultipleNodes); // "Expect IsRunningMultipleNodes to be true with 4 nodes" 767_taskHost.RequestCores(0); 772_taskHost.RequestCores(-1); 781_taskHost.RequestCores(3).ShouldBe(1); 791_taskHost.RequestCores(3).ShouldBe(2); 797_taskHost.RequestCores(3).ShouldBe(1); 807_taskHost.ReleaseCores(0); 812_taskHost.ReleaseCores(-1); 820_taskHost.RequestCores(3).ShouldBe(2); 823_taskHost.ReleaseCores(1); 827_taskHost.RequestCores(1); 835_taskHost.RequestCores(3).ShouldBe(2); 838_taskHost.ReleaseCores(2); 842_taskHost.RequestCores(1);