2 writes to _host
Microsoft.Build.Engine.UnitTests (2)
BackEnd\TaskExecutionHost_Tests.cs (2)
135
_host
= null;
1242
_host
= new TaskExecutionHost();
26 references to _host
Microsoft.Build.Engine.UnitTests (26)
BackEnd\TaskExecutionHost_Tests.cs (26)
130
if (
_host
!= null)
132
((IDisposable)
_host
).Dispose();
147
Assert.True(
_host
.SetTaskParameters(parameters));
161
_host
.SetTaskParameters(parameters);
172
Assert.False(
_host
.SetTaskParameters(parameters));
612
Assert.True(
_host
.SetTaskParameters(parameters));
614
bool executeValue =
_host
.Execute();
628
Assert.True(
_host
.SetTaskParameters(parameters));
630
bool executeValue =
_host
.Execute();
646
((TaskBuilderTestTask)
_host
.TaskInstance).ThrowOnExecute = true;
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);
1258
(
_host
as TaskExecutionHost)._UNITTESTONLY_TaskFactoryWrapper = new TaskFactoryWrapper(taskFactory, loadedType, taskName, TaskHostParameters.Empty);
1259
_host
.InitializeForTask(
1296
_host
.FindTask(TaskHostParameters.Empty);
1297
_host
.InitializeForBatch(talc, _bucket, TaskHostParameters.Empty, scheduledNodeId: 1);
1307
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1319
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1334
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1349
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), false, "output"));
1481
bool success =
_host
.SetTaskParameters(parameters);