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();
1236
_host
= new TaskExecutionHost();
32 references to _host
Microsoft.Build.Engine.UnitTests (32)
BackEnd\TaskExecutionHost_Tests.cs (32)
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);
1015
_host
.InitializeForTask(
1029
_host
.FindTask(null);
1030
_host
.InitializeForBatch(new TaskLoggingContext(_loggingService, tlc.BuildEventContext), _bucket, null);
1253
(
_host
as TaskExecutionHost)._UNITTESTONLY_TaskFactoryWrapper = new TaskFactoryWrapper(taskFactory, loadedType, taskName, null);
1254
_host
.InitializeForTask(
1288
_host
.FindTask(null);
1289
_host
.InitializeForBatch(talc, _bucket, null);
1299
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1311
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1323
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1338
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output"));
1353
Assert.True(
_host
.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), false, "output"));
1485
bool success =
_host
.SetTaskParameters(parameters);