85 references to MockLogger
Microsoft.Build.BuildCheck.UnitTests (2)
BuildCheckManagerProviderTests.cs (1)
31_logger = new MockLogger(output);
TaskInvocationAnalysisDataTests.cs (1)
92Loggers = [new MockLogger(_output)],
Microsoft.Build.Engine.OM.UnitTests (1)
Instance\ProjectInstance_Tests.cs (1)
635MockLogger logger = new MockLogger(_testOutput);
Microsoft.Build.Engine.UnitTests (53)
BackEnd\BuildManager_Logging_Tests.cs (1)
74_logger = new MockLogger(output);
BackEnd\BuildManager_Tests.cs (4)
77_logger = new MockLogger(output); 365Loggers = new List<ILogger> { new MockLogger(_output) } 1537Loggers = new ILogger[] { _logger, new MockLogger(printEventsToStdout: true) }, 4033var mockLogger = new MockLogger(_output);
BackEnd\MSBuild_Tests.cs (11)
208MockLogger logger = new MockLogger(_testOutput); 230MockLogger logger = new MockLogger(_testOutput); 263MockLogger logger = new MockLogger(_testOutput); 301MockLogger logger = new MockLogger(_testOutput); 349MockLogger logger = new MockLogger(_testOutput); 395MockLogger logger = new MockLogger(_testOutput); 680MockLogger logger = new MockLogger(_testOutput); 747MockLogger logger = new MockLogger(_testOutput); 794MockLogger logger = new MockLogger(_testOutput); 826MockLogger logger = new MockLogger(_testOutput); 873MockLogger logger = new MockLogger(_testOutput);
BackEnd\SdkResolverLoader_Tests.cs (1)
37_logger = new MockLogger(output);
BackEnd\SdkResultOutOfProc_Tests.cs (1)
57_logger = new MockLogger(output);
BackEnd\TaskBuilder_Tests.cs (3)
157MockLogger logger = new MockLogger(_testOutput); 437MockLogger logger = new MockLogger(this._testOutput); 1010MockLogger logger = new MockLogger(_testOutput);
BackEnd\TaskHostFactory_Tests.cs (1)
174projectInstance.Build(new[] { new MockLogger(env.Output) }).ShouldBeTrue();
BackEnd\TaskRegistry_Tests.cs (2)
92_loggingService.RegisterLogger(new MockLogger(_output)); 657MockLogger logger = new MockLogger(_output);
ChangeWaves_Tests.cs (1)
62MockLogger log = new MockLogger(_output);
Construction\SolutionFilter_Tests.cs (2)
145MockLogger logger = new(output); 297MockLogger logger = new(output);
Construction\SolutionProjectGenerator_Tests.cs (13)
81MockLogger logger = new MockLogger(output); 293MockLogger logger = new MockLogger(output); 633MockLogger logger = new MockLogger(output); 655MockLogger logger1 = new MockLogger(output); 723MockLogger logger = new MockLogger(output); 1042var logger = new MockLogger(output); 1768MockLogger logger = new MockLogger(output); 2031MockLogger logger = new MockLogger(output); 2119MockLogger logger = new MockLogger(output); 2207MockLogger logger = new MockLogger(output); 2290MockLogger logger = new MockLogger(output); 2617MockLogger mockLogger = new MockLogger(output); 2840var logger = new MockLogger(output);
EndToEndCondition_Tests.cs (2)
34MockLogger logger = new MockLogger(_output, profileEvaluation: false, printEventsToStdout: false); 57MockLogger logger = new MockLogger(_output, profileEvaluation: false, printEventsToStdout: false);
EscapingInProjects_Tests.cs (5)
100", logger: new MockLogger(_output)); 122", logger: new MockLogger(_output)); 559logger: new MockLogger(_output)); 597", logger: new MockLogger(_output)); 624", logger: new MockLogger(_output));
Evaluation\EvaluationLogging_Tests.cs (1)
169new MockLogger(null, true));
Graph\ResultCacheBasedBuilds_Tests.cs (2)
34_logger = new MockLogger(_output); 466var logger = new MockLogger(env.Output);
Instance\ProjectInstance_Internal_Tests.cs (1)
583MockLogger mockLogger = new MockLogger(_output);
InvalidProjectFileException_Tests.cs (2)
43MockLogger ml = new MockLogger(_testOutput); 72MockLogger logger = new MockLogger(_testOutput);
Microsoft.Build.Tasks.UnitTests (24)
AddToWin32Manifest_Tests.cs (1)
114bool result = project.Build(new MockLogger(_testOutput));
CreateItem_Tests.cs (2)
179MockLogger logger = new MockLogger(_testOutput); 214Loggers = new ILogger[] { new MockLogger(_testOutput) },
Exec_Tests.cs (2)
945MockLogger logger = new MockLogger(_output, profileEvaluation: false, printEventsToStdout: false); 1001MockLogger logger = new MockLogger(_output, profileEvaluation: false, printEventsToStdout: false);
MSBuild_Tests.cs (9)
191MockLogger logger = new MockLogger(_testOutput); 212MockLogger logger = new MockLogger(_testOutput); 244MockLogger logger = new MockLogger(_testOutput); 280MockLogger logger = new MockLogger(_testOutput); 325MockLogger logger = new MockLogger(_testOutput); 371MockLogger logger = new MockLogger(_testOutput); 481MockLogger logger = new MockLogger(_testOutput); 1415MockLogger logger = new MockLogger(_testOutput); 1441MockLogger logger = new MockLogger(_testOutput);
MSBuildInternalMessage_Tests.cs (1)
48MockLogger logger = new MockLogger(_testOutput);
OutputPathTests.cs (4)
64project.Build(new MockLogger(_output)).ShouldBeFalse(); 100project.Build(new MockLogger(_output)).ShouldBeTrue(); 143project.Build(new MockLogger(_output)).ShouldBeTrue(); 179project.Build(new MockLogger(_output)).ShouldBeTrue();
RegressionTests.cs (3)
47bool result = project.Build(new MockLogger(_output)); 79var logger = new MockLogger(_output); 104MockLogger logger = new MockLogger(_output);
ResourceHandling\GenerateResource_Tests.cs (2)
3117MockLogger logger = new MockLogger(_output); 3302MockLogger logger = new MockLogger(_output);
Microsoft.Build.UnitTests.Shared (5)
MockEngine.cs (1)
74MockLogger = new MockLogger(output);
MockLogger.cs (1)
246public MockLogger() : this(null)
ObjectModelHelpers.cs (3)
757MockLogger logger = new MockLogger(testOutputHelper, verbosity: loggerVerbosity); 1480MockLogger mockLogger = (testOutput == null) ? new MockLogger() : new MockLogger(testOutput); 2073Logger = new MockLogger(_env.Output);