4 writes to _host
Microsoft.Build.Engine.UnitTests (4)
BackEnd\TaskExecutionHost_Tests.cs (4)
134
_host
= null;
983
_host
= new TaskExecutionHost();
1014
_host
= new TaskExecutionHost();
1246
_host
= new TaskExecutionHost();
31 references to _host
Microsoft.Build.Engine.UnitTests (31)
BackEnd\TaskExecutionHost_Tests.cs (31)
129
if (
_host
!= null)
131
((IDisposable)
_host
).Dispose();
146
Assert.True(
_host
.SetTaskParameters(parameters));
160
_host
.SetTaskParameters(parameters);
171
Assert.False(
_host
.SetTaskParameters(parameters));
611
Assert.True(
_host
.SetTaskParameters(parameters));
613
bool executeValue =
_host
.Execute();
627
Assert.True(
_host
.SetTaskParameters(parameters));
629
bool executeValue =
_host
.Execute();
648
Assert.True(
_host
.SetTaskParameters(parameters));
650
_host
.Execute();
943
Assert.False(
_host
.GatherTaskOutputs("NonExistentOutput", ElementLocation.Create(".", 1, 1), true, "output"));
967
_host
.CleanupForBatch();
968
Assert.NotNull((
_host
as TaskExecutionHost)._UNITTESTONLY_TaskFactoryWrapper);
969
_host
.CleanupForTask();
970
Assert.Null((
_host
as TaskExecutionHost)._UNITTESTONLY_TaskFactoryWrapper);
987
_host
.InitializeForTask(
1003
_host
.FindTask(TaskHostParameters.Empty);
1004
_host
.InitializeForBatch(new TaskLoggingContext(_loggingService, tlc.BuildEventContext), _bucket, TaskHostParameters.Empty, scheduledNodeId: 1);
1018
_host
.InitializeForTask(
1035
_host
.FindTask(TaskHostParameters.Empty);
1036
_host
.InitializeForBatch(new TaskLoggingContext(_loggingService, tlc.BuildEventContext), _bucket, TaskHostParameters.Empty, scheduledNodeId: 1);
1263
(
_host
as TaskExecutionHost)._UNITTESTONLY_TaskFactoryWrapper = new TaskFactoryWrapper(taskFactory, loadedType, taskName, TaskHostParameters.Empty);
1264
_host
.InitializeForTask(
1301
_host
.FindTask(TaskHostParameters.Empty);
1302
_host
.InitializeForBatch(talc, _bucket, TaskHostParameters.Empty, scheduledNodeId: 1);
1312
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1324
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1339
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1354
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), false, "output"));
1486
bool success =
_host
.SetTaskParameters(parameters);