4 writes to _host
Microsoft.Build.Engine.UnitTests (4)
BackEnd\TaskExecutionHost_Tests.cs (4)
133
_host
= null;
982
_host
= new TaskExecutionHost();
1010
_host
= new TaskExecutionHost();
1235
_host
= new TaskExecutionHost();
32 references to _host
Microsoft.Build.Engine.UnitTests (32)
BackEnd\TaskExecutionHost_Tests.cs (32)
128
if (
_host
!= null)
130
((IDisposable)
_host
).Dispose();
145
Assert.True(
_host
.SetTaskParameters(parameters));
159
_host
.SetTaskParameters(parameters);
170
Assert.False(
_host
.SetTaskParameters(parameters));
610
Assert.True(
_host
.SetTaskParameters(parameters));
612
bool executeValue =
_host
.Execute();
626
Assert.True(
_host
.SetTaskParameters(parameters));
628
bool executeValue =
_host
.Execute();
647
Assert.True(
_host
.SetTaskParameters(parameters));
649
_host
.Execute();
942
Assert.False(
_host
.GatherTaskOutputs("NonExistentOutput", ElementLocation.Create(".", 1, 1), true, "output"));
966
_host
.CleanupForBatch();
967
Assert.NotNull((
_host
as TaskExecutionHost)._UNITTESTONLY_TaskFactoryWrapper);
968
_host
.CleanupForTask();
969
Assert.Null((
_host
as TaskExecutionHost)._UNITTESTONLY_TaskFactoryWrapper);
986
_host
.InitializeForTask(
999
_host
.FindTask(null);
1000
_host
.InitializeForBatch(new TaskLoggingContext(_loggingService, tlc.BuildEventContext), _bucket, null);
1014
_host
.InitializeForTask(
1028
_host
.FindTask(null);
1029
_host
.InitializeForBatch(new TaskLoggingContext(_loggingService, tlc.BuildEventContext), _bucket, null);
1252
(
_host
as TaskExecutionHost)._UNITTESTONLY_TaskFactoryWrapper = new TaskFactoryWrapper(taskFactory, loadedType, taskName, null);
1253
_host
.InitializeForTask(
1287
_host
.FindTask(null);
1288
_host
.InitializeForBatch(talc, _bucket, null);
1298
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1310
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1322
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1337
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1352
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), false, "output"));
1484
bool success =
_host
.SetTaskParameters(parameters);