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)
128if (_host != null) 130((IDisposable)_host).Dispose(); 145Assert.True(_host.SetTaskParameters(parameters)); 159_host.SetTaskParameters(parameters); 170Assert.False(_host.SetTaskParameters(parameters)); 610Assert.True(_host.SetTaskParameters(parameters)); 612bool executeValue = _host.Execute(); 626Assert.True(_host.SetTaskParameters(parameters)); 628bool executeValue = _host.Execute(); 647Assert.True(_host.SetTaskParameters(parameters)); 649_host.Execute(); 942Assert.False(_host.GatherTaskOutputs("NonExistentOutput", ElementLocation.Create(".", 1, 1), true, "output")); 966_host.CleanupForBatch(); 967Assert.NotNull((_host as TaskExecutionHost)._UNITTESTONLY_TaskFactoryWrapper); 968_host.CleanupForTask(); 969Assert.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); 1298Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output")); 1310Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output")); 1322Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output")); 1337Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output")); 1352Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), false, "output")); 1484bool success = _host.SetTaskParameters(parameters);