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)
129if (_host != null) 131((IDisposable)_host).Dispose(); 146Assert.True(_host.SetTaskParameters(parameters)); 160_host.SetTaskParameters(parameters); 171Assert.False(_host.SetTaskParameters(parameters)); 611Assert.True(_host.SetTaskParameters(parameters)); 613bool executeValue = _host.Execute(); 627Assert.True(_host.SetTaskParameters(parameters)); 629bool executeValue = _host.Execute(); 648Assert.True(_host.SetTaskParameters(parameters)); 650_host.Execute(); 943Assert.False(_host.GatherTaskOutputs("NonExistentOutput", ElementLocation.Create(".", 1, 1), true, "output")); 967_host.CleanupForBatch(); 968Assert.NotNull((_host as TaskExecutionHost)._UNITTESTONLY_TaskFactoryWrapper); 969_host.CleanupForTask(); 970Assert.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); 1299Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output")); 1311Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output")); 1323Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output")); 1338Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output")); 1353Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), false, "output")); 1485bool success = _host.SetTaskParameters(parameters);