1 write to _taskHost
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskHost_Tests.cs (1)
92_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)
93_taskHost.LoggingContext = new TaskLoggingContext(_loggingService, BuildEventContext.Invalid); 106_taskHost.BuildProjectFile("ProjectFile", new string[] { "Build" }, projectProperties, targetOutputs); 135_taskHost.LogErrorEvent(customBuildError); 160_taskHost.LogWarningEvent(customBuildWarning); 185_taskHost.LogMessageEvent(customMessage); 201_taskHost.ContinueOnError = false; 203_taskHost.LogErrorEvent(new BuildErrorEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender")); 209_taskHost.ContinueOnError = true; 210_taskHost.ConvertErrorsToWarnings = true; 215_taskHost.LogErrorEvent(new BuildErrorEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender")); 221_taskHost.ContinueOnError = true; 222_taskHost.ConvertErrorsToWarnings = false; 228_taskHost.LogErrorEvent(new BuildErrorEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender")); 243_taskHost.LogErrorEvent(null); 254_taskHost.LogWarningEvent(null); 265_taskHost.LogMessageEvent(null); 276_taskHost.LogCustomEvent(null); 286_taskHost.LogErrorEvent(new BuildErrorEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender")); 300_taskHost.LogWarningEvent(new BuildWarningEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender")); 314_taskHost.LogMessageEvent(new BuildMessageEventArgs("message", "HelpKeyword", "senderName", MessageImportance.High)); 328_taskHost.LogCustomEvent(new MyCustomBuildEventArgs("testCustomBuildEvent")); 344_taskHost.LogErrorEvent(new MyCustomBuildErrorEventArgsNotSerializable("SubCategory")); 358_taskHost.LogWarningEvent(new MyCustomBuildWarningEventArgsNotSerializable("SubCategory")); 372_taskHost.LogMessageEvent(new MyCustomMessageEventNotSerializable("message")); 386_taskHost.LogCustomEvent(new MyCustomBuildEventArgsNotSerializable("testCustomBuildEvent")); 402_taskHost.LogCustomEvent(new ExtendedCustomBuildEventArgs("testExtCustomBuildEvent", "ext message", null, null)); 415_taskHost.LogErrorEvent(new ExtendedBuildErrorEventArgs("testExtCustomBuildError", null, null, null, 0, 0, 0, 0, "ext err message", null, null)); 428_taskHost.LogWarningEvent(new ExtendedBuildWarningEventArgs("testExtCustomBuildWarning", null, null, null, 0, 0, 0, 0, "ext warn message", null, null)); 441_taskHost.LogMessageEvent(new ExtendedBuildMessageEventArgs("testExtCustomBuildMessage", "ext message", null, null, MessageImportance.Normal)); 457Assert.True(_taskHost.IsRunningMultipleNodes); 460_taskHost.LogErrorEvent(e); 478_taskHost.LogWarningEvent(e); 479Assert.True(_taskHost.IsRunningMultipleNodes); 497_taskHost.LogMessageEvent(e); 498Assert.True(_taskHost.IsRunningMultipleNodes); 517_taskHost.LogCustomEvent(e); 518Assert.True(_taskHost.IsRunningMultipleNodes); 536Assert.False(_taskHost.IsRunningMultipleNodes); // "Expect IsRunningMultipleNodes to be false with 1 node" 546Assert.True(_taskHost.IsRunningMultipleNodes); // "Expect IsRunningMultipleNodes to be true with 4 nodes" 772_taskHost.RequestCores(0); 777_taskHost.RequestCores(-1); 786_taskHost.RequestCores(3).ShouldBe(1); 796_taskHost.RequestCores(3).ShouldBe(2); 802_taskHost.RequestCores(3).ShouldBe(1); 812_taskHost.ReleaseCores(0); 817_taskHost.ReleaseCores(-1); 825_taskHost.RequestCores(3).ShouldBe(2); 828_taskHost.ReleaseCores(1); 832_taskHost.RequestCores(1); 840_taskHost.RequestCores(3).ShouldBe(2); 843_taskHost.ReleaseCores(2); 847_taskHost.RequestCores(1);