4 writes to _host
Microsoft.Build.Engine.UnitTests (4)
BackEnd\TaskExecutionHost_Tests.cs (4)
134
_host
= null;
983
_host
= new TaskExecutionHost();
1011
_host
= new TaskExecutionHost();
1240
_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(
1000
_host
.FindTask(null);
1001
_host
.InitializeForBatch(new TaskLoggingContext(_loggingService, tlc.BuildEventContext), _bucket, null, scheduledNodeId: 1);
1015
_host
.InitializeForTask(
1029
_host
.FindTask(null);
1030
_host
.InitializeForBatch(new TaskLoggingContext(_loggingService, tlc.BuildEventContext), _bucket, null, scheduledNodeId: 1);
1257
(
_host
as TaskExecutionHost)._UNITTESTONLY_TaskFactoryWrapper = new TaskFactoryWrapper(taskFactory, loadedType, taskName, null);
1258
_host
.InitializeForTask(
1292
_host
.FindTask(null);
1293
_host
.InitializeForBatch(talc, _bucket, null, scheduledNodeId: 1);
1303
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1315
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1330
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1345
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), false, "output"));
1477
bool success =
_host
.SetTaskParameters(parameters);