412 instantiations of MockLogger
Microsoft.Build.BuildCheck.UnitTests (2)
BuildCheckManagerProviderTests.cs (1)
31_logger = new MockLogger(output);
TaskInvocationAnalysisDataTests.cs (1)
92Loggers = [new MockLogger(_output)],
Microsoft.Build.CommandLine.UnitTests (2)
TerminalLogger_Tests.cs (2)
741var mockLogFromPlaybackWithTL = new MockLogger(); 745var mockLogFromPlaybackWithoutTL = new MockLogger();
Microsoft.Build.Engine.OM.UnitTests (33)
Definition\Project_Tests.cs (24)
90MockLogger mockLogger = new MockLogger(); 125MockLogger mockLogger = new MockLogger(); 152MockLogger mockLogger = new MockLogger(); 153MockLogger mockLogger2 = new MockLogger(); 405MockLogger logger = new MockLogger(); 435MockLogger logger = new MockLogger(); 471MockLogger logger = new MockLogger(); 508MockLogger logger = new MockLogger(); 2057MockLogger mockLogger = new MockLogger(); 2075MockLogger logger = new MockLogger(); 2109MockLogger collectionLogger = new MockLogger(); 2112MockLogger mockLogger = new MockLogger(); 2436MockLogger logger = new MockLogger(); 2460MockLogger logger = new MockLogger(); 2530MockLogger logger = new MockLogger(); 3896MockLogger logger = new MockLogger(); 3945MockLogger logger = new MockLogger(); 3989MockLogger logger = new MockLogger(); 4036MockLogger logger = new MockLogger(); 4076MockLogger logger = new MockLogger(); 4119MockLogger logger = new MockLogger(); 4162MockLogger logger = new MockLogger(); 4200MockLogger logger = new MockLogger(); 4264MockLogger logger = new MockLogger();
Definition\ProjectCollection_Tests.cs (3)
1224collection.RegisterLogger(new MockLogger()); 1229collection.RegisterLoggers(new Build.Framework.ILogger[] { new MockLogger(), new MockLogger() });
Definition\ProjectItem_Tests.cs (2)
834MockLogger collectionLogger = new MockLogger(); 959MockLogger collectionLogger = new MockLogger();
Definition\ProjectItemDefinition_Tests.cs (2)
217MockLogger logger = new MockLogger(); 455MockLogger l = new MockLogger();
Instance\ProjectInstance_Tests.cs (2)
384MockLogger logger = new MockLogger(); 635MockLogger logger = new MockLogger(_testOutput);
Microsoft.Build.Engine.UnitTests (309)
BackEnd\BatchingEngine_Tests.cs (2)
489MockLogger logger = new MockLogger(); 523MockLogger logger = new MockLogger();
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\IntrinsicTask_Tests.cs (57)
178MockLogger logger = new MockLogger(); 215MockLogger logger = new MockLogger(); 902MockLogger logger = new MockLogger(); 940MockLogger logger = new MockLogger(); 1076MockLogger logger = new MockLogger(); 1160MockLogger logger = new MockLogger(); 1210MockLogger logger = new MockLogger(); 1233MockLogger logger = new MockLogger(); 1256MockLogger logger = new MockLogger(); 1297MockLogger logger = new MockLogger(); 1327MockLogger logger = new MockLogger(); 1347MockLogger logger = new MockLogger(); 1369MockLogger logger = new MockLogger(); 1389MockLogger logger = new MockLogger(); 1411MockLogger logger = new MockLogger(); 1436MockLogger logger = new MockLogger(); 1468MockLogger logger = new MockLogger(); 1510MockLogger logger = new MockLogger(); 1557MockLogger logger = new MockLogger(); 1659MockLogger logger = new MockLogger(); 2283MockLogger logger = new MockLogger(); 2316MockLogger logger = new MockLogger(); 2349MockLogger logger = new MockLogger(); 2387MockLogger logger = new MockLogger(); 2427MockLogger logger = new MockLogger(); 2462MockLogger logger = new MockLogger(); 2492MockLogger logger = new MockLogger(); 2552MockLogger logger = new MockLogger(); 2577MockLogger logger = new MockLogger(); 2608MockLogger logger = new MockLogger(); 2650MockLogger logger = new MockLogger(); 2695MockLogger logger = new MockLogger(); 2739MockLogger logger = new MockLogger(); 2784MockLogger logger = new MockLogger(); 2863MockLogger logger = new MockLogger(); 2921MockLogger logger = new MockLogger(); 3127MockLogger logger = new MockLogger(); 3178MockLogger logger = new MockLogger(); 3219MockLogger logger = new MockLogger(); 3273MockLogger logger = new MockLogger(); 3300MockLogger logger = new MockLogger(); 3331MockLogger logger = new MockLogger(); 3380MockLogger logger = new MockLogger(); 3419MockLogger logger = new MockLogger(); 3462MockLogger logger = new MockLogger(); 3494MockLogger logger = new MockLogger(); 3558MockLogger logger = new MockLogger(); 3593MockLogger logger = new MockLogger(); 3622MockLogger logger = new MockLogger(); 3653MockLogger logger = new MockLogger(); 3680MockLogger logger = new MockLogger(); 3709MockLogger logger = new MockLogger(); 3738MockLogger logger = new MockLogger(); 3767MockLogger logger = new MockLogger(); 3804MockLogger logger = new MockLogger(); 3833MockLogger logger = new MockLogger(); 3863MockLogger logger = new MockLogger();
BackEnd\LoggingService_Tests.cs (2)
970MockLogger logger = new MockLogger(); 1073_initializedService.RegisterLogger(new MockLogger() { Verbosity = LoggerVerbosity.Normal });
BackEnd\LoggingServicesLogMethod_Tests.cs (1)
442MockLogger mockLogger = new MockLogger();
BackEnd\MSBuild_Tests.cs (18)
185MockLogger logger = new MockLogger(); 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); 1339MockLogger logger = new MockLogger(); 1557MockLogger logger = new MockLogger(); 1579MockLogger logger2 = new MockLogger(); 1688MockLogger logger = new MockLogger(); 1850MockLogger logger = new MockLogger(); 1886MockLogger logger = new MockLogger();
BackEnd\OnError_Tests.cs (21)
35MockLogger l = new MockLogger(); 145MockLogger l = new MockLogger(); 190MockLogger l = new MockLogger(); 222MockLogger l = new MockLogger(); 256MockLogger l = new MockLogger(); 289MockLogger l = new MockLogger(); 321MockLogger l = new MockLogger(); 346MockLogger l = new MockLogger(); 374MockLogger l = new MockLogger(); 402MockLogger l = new MockLogger(); 435MockLogger l = new MockLogger(); 477MockLogger l = new MockLogger(); 502MockLogger l = new MockLogger(); 532MockLogger l = new MockLogger(); 558MockLogger l = new MockLogger(); 610MockLogger l = new MockLogger(); 632MockLogger l = new MockLogger(); 655MockLogger l = new MockLogger(); 678MockLogger l = new MockLogger(); 701MockLogger l = new MockLogger(); 724MockLogger l = new MockLogger();
BackEnd\Scheduler_Tests.cs (2)
81_logger = new MockLogger(); 384_logger = new MockLogger();
BackEnd\SdkResolverLoader_Tests.cs (1)
37_logger = new MockLogger(output);
BackEnd\SdkResolverService_Tests.cs (1)
37_logger = new MockLogger();
BackEnd\SdkResultOutOfProc_Tests.cs (1)
57_logger = new MockLogger(output);
BackEnd\TargetBuilder_Tests.cs (2)
70_mockLogger = new MockLogger(); 285MockLogger logger = new MockLogger();
BackEnd\TargetEntry_Tests.cs (1)
852MockLogger logger = new MockLogger();
BackEnd\TargetUpToDateChecker_Tests.cs (10)
47MockLogger ml = new MockLogger(); 77MockLogger ml = new MockLogger(); 103MockLogger ml = new MockLogger(); 130ml = new MockLogger(); 302MockLogger logger = new MockLogger(); 331MockLogger logger = new MockLogger(); 360MockLogger logger = new MockLogger(); 390MockLogger logger = new MockLogger(); 420MockLogger logger = new MockLogger(); 468MockLogger logger = new MockLogger();
BackEnd\TaskBuilder_Tests.cs (13)
70MockLogger logger = new MockLogger(); 123MockLogger logger = new MockLogger(); 157MockLogger logger = new MockLogger(_testOutput); 215MockLogger logger = new MockLogger(); 261MockLogger logger = new MockLogger(); 318MockLogger logger = new MockLogger(); 415MockLogger logger = new MockLogger(); 437MockLogger logger = new MockLogger(this._testOutput); 468MockLogger logger = new MockLogger(); 494MockLogger logger = new MockLogger(); 519MockLogger logger = new MockLogger(); 550MockLogger logger = new MockLogger(); 1010MockLogger logger = new MockLogger(_testOutput);
BackEnd\TaskExecutionHost_Tests.cs (2)
1061MockLogger ml = new MockLogger() { AllowTaskCrashes = true }; 1234_logger = new MockLogger();
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);
BinaryLogger_Tests.cs (2)
110var mockLogFromBuild = new MockLogger(); 158var mockLogFromPlayback = new MockLogger();
ChangeWaves_Tests.cs (1)
62MockLogger log = new MockLogger(_output);
ConsoleLogger_Tests.cs (1)
157MockLogger mockLogger = new MockLogger();
Construction\SolutionFilter_Tests.cs (3)
129MockLogger logger = new(); 147MockLogger logger = new(output); 299MockLogger 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);
Definition\ItemDefinitionGroup_Tests.cs (35)
327MockLogger logger = new MockLogger(); 357MockLogger logger = new MockLogger(); 386MockLogger logger = new MockLogger(); 701MockLogger logger = new MockLogger(); 729MockLogger logger = new MockLogger(); 755MockLogger logger = new MockLogger(); 780MockLogger logger = new MockLogger(); 815MockLogger logger = new MockLogger(); 834MockLogger logger = new MockLogger(); 850MockLogger logger = new MockLogger(); 862MockLogger logger = new MockLogger(); 901MockLogger logger = new MockLogger(); 931MockLogger logger = new MockLogger(); 961MockLogger logger = new MockLogger(); 992MockLogger logger = new MockLogger(); 1023MockLogger logger = new MockLogger(); 1061MockLogger logger = new MockLogger(); 1095MockLogger logger = new MockLogger(); 1123MockLogger logger = new MockLogger(); 1151MockLogger logger = new MockLogger(); 1181MockLogger logger = new MockLogger(); 1211MockLogger logger = new MockLogger(); 1305MockLogger logger = new MockLogger(); 1332MockLogger logger = new MockLogger(); 1365MockLogger logger = new MockLogger(); 1397MockLogger logger = new MockLogger(); 1436MockLogger logger = new MockLogger(); 1477MockLogger logger = new MockLogger(); 1570MockLogger logger = new MockLogger(); 1627MockLogger logger = new MockLogger(); 1654MockLogger logger = new MockLogger(); 1681MockLogger logger = new MockLogger(); 1709MockLogger logger = new MockLogger(); 1772MockLogger logger = new MockLogger(); 1831MockLogger logger = new MockLogger();
Definition\ToolsVersion_Tests.cs (18)
83MockLogger mockLogger = new MockLogger(); 103MockLogger mockLogger = new MockLogger(); 122MockLogger mockLogger = new MockLogger(); 142MockLogger mockLogger = new MockLogger(); 192MockLogger mockLogger = new MockLogger(); 217MockLogger mockLogger = new MockLogger(); 238MockLogger mockLogger = new MockLogger(); 304MockLogger mockLogger = new MockLogger(); 341MockLogger mockLogger = new MockLogger(); 377MockLogger mockLogger = new MockLogger(); 407MockLogger mockLogger = new MockLogger(); 439MockLogger mockLogger = new MockLogger(); 547MockLogger mockLogger = new MockLogger(); 585MockLogger mockLogger = new MockLogger(); 626MockLogger mockLogger = new MockLogger(); 697MockLogger mockLogger = new MockLogger(); 782MockLogger mockLogger = new MockLogger(); 893MockLogger mockLogger = new MockLogger();
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 (9)
100", logger: new MockLogger(_output)); 122", logger: new MockLogger(_output)); 559logger: new MockLogger(_output)); 597", logger: new MockLogger(_output)); 624", logger: new MockLogger(_output)); 678MockLogger logger = new MockLogger(); 702MockLogger logger = new MockLogger(); 736MockLogger logger = new(); 810MockLogger logger = new MockLogger();
Evaluation\EvaluationLogging_Tests.cs (3)
85firstEvaluationLogger ??= new MockLogger(); 143project => new MockLogger 169new MockLogger(null, true));
Evaluation\Evaluator_Tests.cs (54)
64MockLogger logger = new(); 91MockLogger logger = new(); 322MockLogger logger = new MockLogger(); 451MockLogger logger = new MockLogger(); 513MockLogger logger = new MockLogger(); 556MockLogger logger = new MockLogger(); 601MockLogger logger = new MockLogger(); 644MockLogger logger = new MockLogger(); 690MockLogger logger = new MockLogger(); 734MockLogger logger = new MockLogger(); 780MockLogger logger = new MockLogger(); 847MockLogger logger = new MockLogger(); 1155MockLogger logger = new MockLogger(); 1211MockLogger logger = new MockLogger(); 1275MockLogger logger = new MockLogger(); 1312MockLogger logger = new MockLogger(); 1359MockLogger logger = new MockLogger(); 2308MockLogger mockLogger = new MockLogger(); 2333MockLogger mockLogger = new MockLogger(); 2357MockLogger mockLogger = new MockLogger(); 2890MockLogger logger = new MockLogger(); 2915MockLogger logger = new MockLogger(); 2940MockLogger logger = new MockLogger(); 2970MockLogger logger = new MockLogger(); 3000MockLogger logger = new MockLogger(); 3030MockLogger logger = new MockLogger(); 3060MockLogger logger = new MockLogger(); 3104MockLogger logger = new MockLogger(); 3141MockLogger logger = new MockLogger(); 3176MockLogger logger = new MockLogger(); 3210MockLogger logger = new MockLogger(); 3355MockLogger logger = new MockLogger(); 3409MockLogger logger = new MockLogger(); 3470MockLogger logger = new MockLogger(); 3530MockLogger logger = new MockLogger(); 3604MockLogger logger = new MockLogger(); 3677MockLogger logger = new MockLogger(); 3740MockLogger logger = new MockLogger(); 3802MockLogger logger = new MockLogger(); 3855MockLogger logger = new MockLogger(); 3921MockLogger logger = new MockLogger(); 3973MockLogger logger = new MockLogger(); 4025MockLogger logger = new MockLogger(); 4084MockLogger logger = new MockLogger(); 4147MockLogger logger = new MockLogger(); 4206MockLogger logger = new MockLogger(); 4258MockLogger logger = new MockLogger(); 4302MockLogger logger = new MockLogger(); 4382MockLogger logger = new MockLogger(); 4580MockLogger logger = new MockLogger(); 4693MockLogger logger = new MockLogger(); 5021MockLogger logger = new MockLogger(); 5060MockLogger logger = new() 5218MockLogger logger = new MockLogger();
Evaluation\Expander_Tests.cs (2)
5132var logger = new MockLogger(); 5169var logger = new MockLogger();
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (11)
57var logger = new MockLogger(); 307var logger = new MockLogger(); 409var logger = new MockLogger(); 502var logger = new MockLogger(); 579var logger = new MockLogger(); 640var logger = new MockLogger(); 710var logger = new MockLogger(); 775var logger = new MockLogger(); 834var logger = new MockLogger(); 869var logger = new MockLogger(); 926var logger = new MockLogger();
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
365var logger = new MockLogger(); 474MockLogger logger = new MockLogger();
Evaluation\SdkResultEvaluation_Tests.cs (1)
41_logger = new MockLogger();
FixPathOnUnix_Tests.cs (1)
45var logger = new MockLogger();
Graph\GetCompatiblePlatformGraph_Tests.cs (1)
440MockLogger logger = new();
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);
Instance\TaskItem_Tests.cs (3)
281MockLogger logger = new MockLogger(); 335MockLogger logger = new MockLogger(); 370MockLogger logger = new MockLogger();
InvalidProjectFileException_Tests.cs (2)
43MockLogger ml = new MockLogger(_testOutput); 72MockLogger logger = new MockLogger(_testOutput);
Microsoft.Build.Tasks.UnitTests (47)
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 (13)
168MockLogger logger = new MockLogger(); 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); 1388MockLogger logger = new MockLogger(); 1415MockLogger logger = new MockLogger(_testOutput); 1441MockLogger logger = new MockLogger(_testOutput); 1474var logger = new MockLogger(); 1510var logger = new MockLogger();
MSBuildInternalMessage_Tests.cs (5)
49MockLogger logger = new MockLogger(_testOutput); 92MockLogger logger = new MockLogger(_testOutput); 146MockLogger logger = new MockLogger(_testOutput); 221MockLogger logger = new MockLogger(_testOutput); 266MockLogger 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();
ProjectExtensionsImportTestBase.cs (2)
227MockLogger logger = new MockLogger(); 254MockLogger logger = new MockLogger();
RegressionTests.cs (3)
47bool result = project.Build(new MockLogger(_output)); 79var logger = new MockLogger(_output); 104MockLogger logger = new MockLogger(_output);
ResolveSDKReference_Tests.cs (9)
3809MockLogger logger = new MockLogger(); 3824logger = new MockLogger(); 3952MockLogger logger = new MockLogger(); 3967logger = new MockLogger(); 4061MockLogger logger = new MockLogger(); 4076logger = new MockLogger(); 4158MockLogger logger = new MockLogger(); 4175logger = new MockLogger(); 4291MockLogger logger = new MockLogger();
ResourceHandling\GenerateResource_Tests.cs (2)
3117MockLogger logger = new MockLogger(_output); 3302MockLogger logger = new MockLogger(_output);
XmlPeek_Tests.cs (1)
336MockLogger log = new();
XmlPoke_Tests.cs (3)
144MockLogger log = new(); 156MockLogger log = new(); 169MockLogger log = new();
Microsoft.Build.UnitTests.Shared (10)
EngineTestEnvironment.cs (1)
171var logger = new MockLogger();
MockEngine.cs (2)
67MockLogger = new MockLogger(); 74MockLogger = new MockLogger(output);
ObjectModelHelpers.cs (7)
760MockLogger logger = new MockLogger(testOutputHelper, verbosity: loggerVerbosity); 788MockLogger logger = new MockLogger(); 1362logger ??= new MockLogger 1388var logger = new MockLogger(); 1483MockLogger mockLogger = (testOutput == null) ? new MockLogger() : new MockLogger(testOutput); 2078Logger = new MockLogger(_env.Output);
Microsoft.Build.Utilities.UnitTests (9)
MuxLogger_Tests.cs (9)
72muxLogger.RegisterLogger(1, new MockLogger()); 93MockLogger mockLogger2 = new MockLogger(); 111MockLogger mockLogger = new MockLogger(); 156MockLogger mockLogger = new MockLogger(); 209MockLogger mockLogger1 = new MockLogger(); 210MockLogger mockLogger2 = new MockLogger(); 264MockLogger mockLogger1 = new MockLogger(); 265MockLogger mockLogger2 = new MockLogger(); 314MockLogger mockLogger = new MockLogger();
555 references to MockLogger
Microsoft.Build.BuildCheck.UnitTests (1)
BuildCheckManagerProviderTests.cs (1)
26private readonly MockLogger _logger;
Microsoft.Build.CommandLine.UnitTests (2)
TerminalLogger_Tests.cs (2)
741var mockLogFromPlaybackWithTL = new MockLogger(); 745var mockLogFromPlaybackWithoutTL = new MockLogger();
Microsoft.Build.Engine.OM.UnitTests (30)
Definition\Project_Tests.cs (24)
90MockLogger mockLogger = new MockLogger(); 125MockLogger mockLogger = new MockLogger(); 152MockLogger mockLogger = new MockLogger(); 153MockLogger mockLogger2 = new MockLogger(); 405MockLogger logger = new MockLogger(); 435MockLogger logger = new MockLogger(); 471MockLogger logger = new MockLogger(); 508MockLogger logger = new MockLogger(); 2057MockLogger mockLogger = new MockLogger(); 2075MockLogger logger = new MockLogger(); 2109MockLogger collectionLogger = new MockLogger(); 2112MockLogger mockLogger = new MockLogger(); 2436MockLogger logger = new MockLogger(); 2460MockLogger logger = new MockLogger(); 2530MockLogger logger = new MockLogger(); 3896MockLogger logger = new MockLogger(); 3945MockLogger logger = new MockLogger(); 3989MockLogger logger = new MockLogger(); 4036MockLogger logger = new MockLogger(); 4076MockLogger logger = new MockLogger(); 4119MockLogger logger = new MockLogger(); 4162MockLogger logger = new MockLogger(); 4200MockLogger logger = new MockLogger(); 4264MockLogger logger = new MockLogger();
Definition\ProjectItem_Tests.cs (2)
834MockLogger collectionLogger = new MockLogger(); 959MockLogger collectionLogger = new MockLogger();
Definition\ProjectItemDefinition_Tests.cs (2)
217MockLogger logger = new MockLogger(); 455MockLogger l = new MockLogger();
Instance\ProjectInstance_Tests.cs (2)
384MockLogger logger = new MockLogger(); 635MockLogger logger = new MockLogger(_testOutput);
Microsoft.Build.Engine.UnitTests (433)
BackEnd\BatchingEngine_Tests.cs (9)
269MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 308MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 342MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 365MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 391MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 418MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 455MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 489MockLogger logger = new MockLogger(); 523MockLogger logger = new MockLogger();
BackEnd\BuildManager_Logging_Tests.cs (1)
50private readonly MockLogger _logger;
BackEnd\BuildManager_Tests.cs (4)
43private readonly MockLogger _logger; 975MockLogger logger; 4033var mockLogger = new MockLogger(_output); 4347MockLogger logger = null;
BackEnd\GenerateTemporaryTargetAssembly_Tests.cs (1)
27MockLogger logger = ObjectModelHelpers.BuildProjectExpectFailure(@$"
BackEnd\IntrinsicTask_Tests.cs (57)
178MockLogger logger = new MockLogger(); 215MockLogger logger = new MockLogger(); 902MockLogger logger = new MockLogger(); 940MockLogger logger = new MockLogger(); 1076MockLogger logger = new MockLogger(); 1160MockLogger logger = new MockLogger(); 1210MockLogger logger = new MockLogger(); 1233MockLogger logger = new MockLogger(); 1256MockLogger logger = new MockLogger(); 1297MockLogger logger = new MockLogger(); 1327MockLogger logger = new MockLogger(); 1347MockLogger logger = new MockLogger(); 1369MockLogger logger = new MockLogger(); 1389MockLogger logger = new MockLogger(); 1411MockLogger logger = new MockLogger(); 1436MockLogger logger = new MockLogger(); 1468MockLogger logger = new MockLogger(); 1510MockLogger logger = new MockLogger(); 1557MockLogger logger = new MockLogger(); 1659MockLogger logger = new MockLogger(); 2283MockLogger logger = new MockLogger(); 2316MockLogger logger = new MockLogger(); 2349MockLogger logger = new MockLogger(); 2387MockLogger logger = new MockLogger(); 2427MockLogger logger = new MockLogger(); 2462MockLogger logger = new MockLogger(); 2492MockLogger logger = new MockLogger(); 2552MockLogger logger = new MockLogger(); 2577MockLogger logger = new MockLogger(); 2608MockLogger logger = new MockLogger(); 2650MockLogger logger = new MockLogger(); 2695MockLogger logger = new MockLogger(); 2739MockLogger logger = new MockLogger(); 2784MockLogger logger = new MockLogger(); 2863MockLogger logger = new MockLogger(); 2921MockLogger logger = new MockLogger(); 3127MockLogger logger = new MockLogger(); 3178MockLogger logger = new MockLogger(); 3219MockLogger logger = new MockLogger(); 3273MockLogger logger = new MockLogger(); 3300MockLogger logger = new MockLogger(); 3331MockLogger logger = new MockLogger(); 3380MockLogger logger = new MockLogger(); 3419MockLogger logger = new MockLogger(); 3462MockLogger logger = new MockLogger(); 3494MockLogger logger = new MockLogger(); 3558MockLogger logger = new MockLogger(); 3593MockLogger logger = new MockLogger(); 3622MockLogger logger = new MockLogger(); 3653MockLogger logger = new MockLogger(); 3680MockLogger logger = new MockLogger(); 3709MockLogger logger = new MockLogger(); 3738MockLogger logger = new MockLogger(); 3767MockLogger logger = new MockLogger(); 3804MockLogger logger = new MockLogger(); 3833MockLogger logger = new MockLogger(); 3863MockLogger logger = new MockLogger();
BackEnd\LoggingService_Tests.cs (10)
734MockLogger logger = GetLoggedEventsWithWarningsAsErrorsOrMessages(BuildWarningEventForTreatAsErrorOrMessageTests, (LoggerMode)loggerMode, nodeId, warningsAsErrors); 765MockLogger logger = GetLoggedEventsWithWarningsAsErrorsOrMessages(BuildWarningEventForTreatAsErrorOrMessageTests, warningsAsErrors: warningsAsErrors); 784MockLogger logger = GetLoggedEventsWithWarningsAsErrorsOrMessages(BuildWarningEventForTreatAsErrorOrMessageTests, (LoggerMode)loggerMode, nodeId, warningsAsErrors); 818MockLogger logger = GetLoggedEventsWithWarningsAsErrorsOrMessages(BuildWarningEventForTreatAsErrorOrMessageTests, (LoggerMode)loggerMode, nodeId, warningsAsMessages: warningsAsMessages); 850MockLogger logger = GetLoggedEventsWithWarningsAsErrorsOrMessages(BuildWarningEventForTreatAsErrorOrMessageTests, warningsAsMessages: warningsAsMessages); 872MockLogger logger = GetLoggedEventsWithWarningsAsErrorsOrMessages(BuildWarningEventForTreatAsErrorOrMessageTests, (LoggerMode)loggerMode, nodeId, warningsAsErrorsForProject: warningsAsErrorsForProject); 903MockLogger logger = GetLoggedEventsWithWarningsAsErrorsOrMessages(BuildWarningEventForTreatAsErrorOrMessageTests, (LoggerMode)loggerMode, nodeId, warningsAsErrorsForProject: warningsAsErrorsForProject); 925MockLogger logger = GetLoggedEventsWithWarningsAsErrorsOrMessages(BuildWarningEventForTreatAsErrorOrMessageTests, (LoggerMode)loggerMode, nodeId, warningsAsMessagesForProject: warningsAsMessagesForProject); 945private MockLogger GetLoggedEventsWithWarningsAsErrorsOrMessages( 970MockLogger logger = new MockLogger();
BackEnd\LoggingServicesLogMethod_Tests.cs (1)
442MockLogger mockLogger = new MockLogger();
BackEnd\MSBuild_Tests.cs (18)
185MockLogger logger = new MockLogger(); 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); 1339MockLogger logger = new MockLogger(); 1557MockLogger logger = new MockLogger(); 1579MockLogger logger2 = new MockLogger(); 1688MockLogger logger = new MockLogger(); 1850MockLogger logger = new MockLogger(); 1886MockLogger logger = new MockLogger();
BackEnd\OnError_Tests.cs (23)
35MockLogger l = new MockLogger(); 145MockLogger l = new MockLogger(); 190MockLogger l = new MockLogger(); 222MockLogger l = new MockLogger(); 256MockLogger l = new MockLogger(); 289MockLogger l = new MockLogger(); 321MockLogger l = new MockLogger(); 346MockLogger l = new MockLogger(); 374MockLogger l = new MockLogger(); 402MockLogger l = new MockLogger(); 435MockLogger l = new MockLogger(); 477MockLogger l = new MockLogger(); 502MockLogger l = new MockLogger(); 532MockLogger l = new MockLogger(); 558MockLogger l = new MockLogger(); 581MockLogger logger = ObjectModelHelpers.BuildProjectExpectFailure($@" 596logger.AssertLogContains(String.Format(MockLogger.GetString("TaskReturnedFalseButDidNotLogError"), "FailingTask")); 610MockLogger l = new MockLogger(); 632MockLogger l = new MockLogger(); 655MockLogger l = new MockLogger(); 678MockLogger l = new MockLogger(); 701MockLogger l = new MockLogger(); 724MockLogger l = new MockLogger();
BackEnd\Scheduler_Tests.cs (1)
49private MockLogger _logger;
BackEnd\SdkResolverLoader_Tests.cs (1)
32private readonly MockLogger _logger;
BackEnd\SdkResolverService_Tests.cs (1)
32private readonly MockLogger _logger;
BackEnd\SdkResultOutOfProc_Tests.cs (1)
31private readonly MockLogger _logger;
BackEnd\TargetBuilder_Tests.cs (7)
44private MockLogger _mockLogger; 229var logger = files.BuildProjectExpectSuccess(); 285MockLogger logger = new MockLogger(); 387MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 419MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 442MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 478MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content);
BackEnd\TargetEntry_Tests.cs (5)
650MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 698MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 795MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 852MockLogger logger = new MockLogger(); 918MockLogger log = Helpers.BuildProjectWithNewOMExpectFailure(content, allowTaskCrash: true);
BackEnd\TargetUpToDateChecker_Tests.cs (9)
47MockLogger ml = new MockLogger(); 77MockLogger ml = new MockLogger(); 103MockLogger ml = new MockLogger(); 302MockLogger logger = new MockLogger(); 331MockLogger logger = new MockLogger(); 360MockLogger logger = new MockLogger(); 390MockLogger logger = new MockLogger(); 420MockLogger logger = new MockLogger(); 468MockLogger logger = new MockLogger();
BackEnd\TaskBuilder_Tests.cs (17)
70MockLogger logger = new MockLogger(); 123MockLogger logger = new MockLogger(); 157MockLogger logger = new MockLogger(_testOutput); 215MockLogger logger = new MockLogger(); 261MockLogger logger = new MockLogger(); 318MockLogger logger = new MockLogger(); 415MockLogger logger = new MockLogger(); 437MockLogger logger = new MockLogger(this._testOutput); 468MockLogger logger = new MockLogger(); 494MockLogger logger = new MockLogger(); 519MockLogger logger = new MockLogger(); 550MockLogger logger = new MockLogger(); 594MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(projectContents, _testOutput, LoggerVerbosity.Diagnostic); 618MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(projectContents, _testOutput, LoggerVerbosity.Diagnostic); 644MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(projectContents, _testOutput, LoggerVerbosity.Diagnostic); 673MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(projectContents, _testOutput); 1010MockLogger logger = new MockLogger(_testOutput);
BackEnd\TaskExecutionHost_Tests.cs (4)
59private MockLogger _logger; 1041MockLogger ml = ObjectModelHelpers.BuildProjectExpectSuccess($""" 1061MockLogger ml = new MockLogger() { AllowTaskCrashes = true }; 1102MockLogger ml = ObjectModelHelpers.BuildProjectExpectSuccess($"""
BackEnd\TaskHost_Tests.cs (2)
727MockLogger mockLogger = Helpers.BuildProjectWithNewOMExpectSuccess(projectFileContents, globalProperties); 757MockLogger mockLogger = Helpers.BuildProjectWithNewOMExpectSuccess(projectFileContents);
BackEnd\TaskRegistry_Tests.cs (1)
657MockLogger logger = new MockLogger(_output);
BinaryLogger_Tests.cs (2)
110var mockLogFromBuild = new MockLogger(); 158var mockLogFromPlayback = new MockLogger();
ChangeWaves_Tests.cs (1)
62MockLogger log = new MockLogger(_output);
ConsoleLogger_Tests.cs (1)
157MockLogger mockLogger = new MockLogger();
Construction\SolutionFilter_Tests.cs (3)
129MockLogger logger = new(); 147MockLogger logger = new(output); 299MockLogger 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);
Definition\ItemDefinitionGroup_Tests.cs (35)
327MockLogger logger = new MockLogger(); 357MockLogger logger = new MockLogger(); 386MockLogger logger = new MockLogger(); 701MockLogger logger = new MockLogger(); 729MockLogger logger = new MockLogger(); 755MockLogger logger = new MockLogger(); 780MockLogger logger = new MockLogger(); 815MockLogger logger = new MockLogger(); 834MockLogger logger = new MockLogger(); 850MockLogger logger = new MockLogger(); 862MockLogger logger = new MockLogger(); 901MockLogger logger = new MockLogger(); 931MockLogger logger = new MockLogger(); 961MockLogger logger = new MockLogger(); 992MockLogger logger = new MockLogger(); 1023MockLogger logger = new MockLogger(); 1061MockLogger logger = new MockLogger(); 1095MockLogger logger = new MockLogger(); 1123MockLogger logger = new MockLogger(); 1151MockLogger logger = new MockLogger(); 1181MockLogger logger = new MockLogger(); 1211MockLogger logger = new MockLogger(); 1305MockLogger logger = new MockLogger(); 1332MockLogger logger = new MockLogger(); 1365MockLogger logger = new MockLogger(); 1397MockLogger logger = new MockLogger(); 1436MockLogger logger = new MockLogger(); 1477MockLogger logger = new MockLogger(); 1570MockLogger logger = new MockLogger(); 1627MockLogger logger = new MockLogger(); 1654MockLogger logger = new MockLogger(); 1681MockLogger logger = new MockLogger(); 1709MockLogger logger = new MockLogger(); 1772MockLogger logger = new MockLogger(); 1831MockLogger logger = new MockLogger();
Definition\ToolsVersion_Tests.cs (18)
83MockLogger mockLogger = new MockLogger(); 103MockLogger mockLogger = new MockLogger(); 122MockLogger mockLogger = new MockLogger(); 142MockLogger mockLogger = new MockLogger(); 192MockLogger mockLogger = new MockLogger(); 217MockLogger mockLogger = new MockLogger(); 238MockLogger mockLogger = new MockLogger(); 304MockLogger mockLogger = new MockLogger(); 341MockLogger mockLogger = new MockLogger(); 377MockLogger mockLogger = new MockLogger(); 407MockLogger mockLogger = new MockLogger(); 439MockLogger mockLogger = new MockLogger(); 547MockLogger mockLogger = new MockLogger(); 585MockLogger mockLogger = new MockLogger(); 626MockLogger mockLogger = new MockLogger(); 697MockLogger mockLogger = new MockLogger(); 782MockLogger mockLogger = new MockLogger(); 893MockLogger mockLogger = new MockLogger();
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 (9)
91MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 112MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 542MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(String.Format(@" 584MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 609MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 678MockLogger logger = new MockLogger(); 702MockLogger logger = new MockLogger(); 736MockLogger logger = new(); 810MockLogger logger = new MockLogger();
Evaluation\EvaluationLogging_Tests.cs (4)
42Action<Project, MockLogger> loggingTest = null, 43MockLogger firstEvaluationLogger = null, 44Func<Project, MockLogger> reevaluationLoggerFactory = null) 94var reevaluationLogger = reevaluationLoggerFactory.Invoke(project);
Evaluation\Evaluator_Tests.cs (55)
64MockLogger logger = new(); 91MockLogger logger = new(); 322MockLogger logger = new MockLogger(); 451MockLogger logger = new MockLogger(); 513MockLogger logger = new MockLogger(); 556MockLogger logger = new MockLogger(); 601MockLogger logger = new MockLogger(); 644MockLogger logger = new MockLogger(); 690MockLogger logger = new MockLogger(); 734MockLogger logger = new MockLogger(); 780MockLogger logger = new MockLogger(); 847MockLogger logger = new MockLogger(); 1155MockLogger logger = new MockLogger(); 1211MockLogger logger = new MockLogger(); 1275MockLogger logger = new MockLogger(); 1312MockLogger logger = new MockLogger(); 1359MockLogger logger = new MockLogger(); 2308MockLogger mockLogger = new MockLogger(); 2333MockLogger mockLogger = new MockLogger(); 2357MockLogger mockLogger = new MockLogger(); 2890MockLogger logger = new MockLogger(); 2915MockLogger logger = new MockLogger(); 2940MockLogger logger = new MockLogger(); 2970MockLogger logger = new MockLogger(); 3000MockLogger logger = new MockLogger(); 3030MockLogger logger = new MockLogger(); 3060MockLogger logger = new MockLogger(); 3104MockLogger logger = new MockLogger(); 3141MockLogger logger = new MockLogger(); 3176MockLogger logger = new MockLogger(); 3210MockLogger logger = new MockLogger(); 3355MockLogger logger = new MockLogger(); 3409MockLogger logger = new MockLogger(); 3470MockLogger logger = new MockLogger(); 3530MockLogger logger = new MockLogger(); 3604MockLogger logger = new MockLogger(); 3677MockLogger logger = new MockLogger(); 3740MockLogger logger = new MockLogger(); 3802MockLogger logger = new MockLogger(); 3855MockLogger logger = new MockLogger(); 3921MockLogger logger = new MockLogger(); 3973MockLogger logger = new MockLogger(); 4025MockLogger logger = new MockLogger(); 4084MockLogger logger = new MockLogger(); 4147MockLogger logger = new MockLogger(); 4206MockLogger logger = new MockLogger(); 4258MockLogger logger = new MockLogger(); 4302MockLogger logger = new MockLogger(); 4382MockLogger logger = new MockLogger(); 4580MockLogger logger = new MockLogger(); 4693MockLogger logger = new MockLogger(); 4990private void VerifyPropertyTrackingLoggingScenario(string envVarValue, Action<MockLogger> loggerEvaluatorAction) 5021MockLogger logger = new MockLogger(); 5060MockLogger logger = new() 5218MockLogger logger = new MockLogger();
Evaluation\Expander_Tests.cs (33)
381MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 443MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 466MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 488MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 511MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 532MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 554MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 576MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 598MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 619MockLogger log = Helpers.BuildProjectWithNewOMExpectFailure(content, false /* no crashes */); 639MockLogger log = Helpers.BuildProjectWithNewOMExpectFailure(content, false /* no crashes */); 824MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 856MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 907MockLogger logger = Helpers.BuildProjectWithNewOMExpectFailure(@" 926MockLogger logger = Helpers.BuildProjectWithNewOMExpectFailure(@" 966MockLogger logger = Helpers.BuildProjectWithNewOMExpectFailure(@" 985MockLogger logger = Helpers.BuildProjectWithNewOMExpectFailure(@" 1025MockLogger logger = Helpers.BuildProjectWithNewOMExpectFailure(@" 1041var logger = Helpers.BuildProjectContentUsingBuildManagerExpectResult( 1057var logger = Helpers.BuildProjectContentUsingBuildManagerExpectResult( 1076MockLogger logger = Helpers.BuildProjectWithNewOMExpectFailure(@" 1095MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 1139MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(""" 1166MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 1192MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 1221MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 1299MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 1315MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 1331MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(@" 1941MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 1989MockLogger log = Helpers.BuildProjectWithNewOMExpectSuccess(content); 5132var logger = new MockLogger(); 5169var logger = new MockLogger();
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (13)
57var logger = new MockLogger(); 307var logger = new MockLogger(); 409var logger = new MockLogger(); 502var logger = new MockLogger(); 579var logger = new MockLogger(); 640var logger = new MockLogger(); 710var logger = new MockLogger(); 775var logger = new MockLogger(); 834var logger = new MockLogger(); 869var logger = new MockLogger(); 885private void CreateAndBuildProjectForImportFromExtensionsPath(string extnPathPropertyName, Action<Project, MockLogger> action) 919Action<Project, MockLogger> action) 926var logger = new MockLogger();
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
365var logger = new MockLogger(); 474MockLogger logger = new MockLogger();
Evaluation\SdkResultEvaluation_Tests.cs (1)
26private MockLogger _logger;
FixPathOnUnix_Tests.cs (1)
45var logger = new MockLogger();
Graph\GetCompatiblePlatformGraph_Tests.cs (1)
440MockLogger logger = new();
Graph\IsolateProjects_Tests.cs (4)
329Dictionary<string, (BuildResult Result, MockLogger Logger)> results = ResultCacheBasedBuilds_Tests.BuildUsingCaches( 349MockLogger rootLogger = results["1"].Logger; 350MockLogger declaredReferenceLogger = results["2"].Logger; 507Action<BuildResult, MockLogger> assert,
Graph\ProjectGraph_Tests.cs (4)
1555Dictionary<string, (BuildResult Result, MockLogger Logger)> results = ResultCacheBasedBuilds_Tests.BuildUsingCaches( 1563foreach (KeyValuePair<string, (BuildResult Result, MockLogger Logger)> result in results) 1605Dictionary<string, (BuildResult Result, MockLogger Logger)> results = ResultCacheBasedBuilds_Tests.BuildUsingCaches( 1616MockLogger project1MockLogger = results["1"].Logger;
Graph\ResultCacheBasedBuilds_Tests.cs (4)
45private readonly MockLogger _logger; 423internal static Dictionary<string, (BuildResult Result, MockLogger Logger)> BuildUsingCaches( 437var results = new Dictionary<string, (BuildResult Result, MockLogger Logger)>(topoSortedNodes.Count); 466var logger = new MockLogger(env.Output);
Instance\ProjectInstance_Internal_Tests.cs (1)
583MockLogger mockLogger = new MockLogger(_output);
Instance\TaskItem_Tests.cs (3)
281MockLogger logger = new MockLogger(); 335MockLogger logger = new MockLogger(); 370MockLogger logger = new MockLogger();
InvalidProjectFileException_Tests.cs (2)
43MockLogger ml = new MockLogger(_testOutput); 72MockLogger logger = new MockLogger(_testOutput);
Parser_Tests.cs (2)
444MockLogger ml = ObjectModelHelpers.BuildProjectExpectSuccess(@" 486MockLogger ml = ObjectModelHelpers.BuildProjectExpectSuccess(@"
ProjectCache\ProjectCacheTests.cs (20)
466MockLogger logger; 494MockLogger logger; 518(MockLogger logger, ProjectGraph graph, Dictionary<ProjectGraphNode, BuildResult> nodesToBuildResults) = BuildGraphVsScenario(testData, buildParameters); 536(MockLogger logger, ProjectGraph graph, _) = BuildGraphVsScenario(testData, assertBuildResults: false); 542private (MockLogger logger, ProjectGraph projectGraph, Dictionary<ProjectGraphNode, BuildResult> nodesToBuildResults) BuildGraphVsScenario( 548MockLogger logger; 691MockLogger logger; 758MockLogger logger; 775MockLogger mockLogger, 890MockLogger logger; 922MockLogger logger; 948MockLogger logger; 999MockLogger logger; 1039MockLogger logger; 1071MockLogger logger; 1118MockLogger logger; 1253var logger = buildSession.Logger; 1474MockLogger logger; 1535MockLogger logger; 1612MockLogger logger;
TerminalLoggerConfiguration_Tests.cs (2)
39_cmd = $"{projectFile.Path} -target:Hello -logger:{typeof(MockLogger).FullName},{typeof(MockLogger).Assembly.Location};ReportTelemetry";
WarningsAsMessagesAndErrors_Tests.cs (24)
31MockLogger logger = ObjectModelHelpers.BuildProjectExpectFailure(GetTestProject(treatAllWarningsAsErrors: true)); 66MockLogger logger = project1.BuildProjectExpectFailure(validateLoggerRoundtrip: false); 75MockLogger logger = ObjectModelHelpers.BuildProjectExpectFailure(GetTestProject(warningsAsErrors: ExpectedEventCode)); 83MockLogger logger = ObjectModelHelpers.BuildProjectExpectFailure( 97MockLogger logger = ObjectModelHelpers.BuildProjectExpectFailure( 113MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess( 127MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(GetTestProject(warningsAsMessages: ExpectedEventCode)); 160MockLogger logger = project1.BuildProjectExpectSuccess(validateLoggerRoundtrip: false); 169MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess( 183MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess( 199MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess( 213MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess( 221private void VerifyBuildErrorEvent(MockLogger logger) 233private void VerifyBuildWarningEvent(MockLogger logger) 245private void VerifyBuildMessageEvent(MockLogger logger) 304MockLogger logger = proj.BuildProjectExpectFailure(); 356MockLogger logger = proj.BuildProjectExpectFailure(); 392MockLogger logger = proj.BuildProjectExpectFailure(); 415MockLogger logger = proj.BuildProjectExpectFailure(); 438MockLogger logger = proj.BuildProjectExpectSuccess(); 463MockLogger logger = proj.BuildProjectExpectSuccess(); 485MockLogger logger = proj.BuildProjectExpectSuccess(); 505MockLogger logger = proj.BuildProjectExpectFailure(); 525MockLogger logger = proj.BuildProjectExpectFailure();
Microsoft.Build.Tasks.UnitTests (52)
CallTarget_Tests.cs (5)
35MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(@" 56MockLogger logger = ObjectModelHelpers.BuildProjectExpectFailure(@" 88MockLogger logger = ObjectModelHelpers.BuildProjectExpectFailure(@" 115MockLogger logger = ObjectModelHelpers.BuildProjectExpectFailure(@" 201MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(@"
CodeTaskFactoryTests.cs (1)
1227MockLogger mockLogger = Helpers.BuildProjectWithNewOMExpectFailure(projectFileContents, allowTaskCrash: false);
CreateItem_Tests.cs (1)
179MockLogger logger = new MockLogger(_testOutput);
CreateProperty_Tests.cs (3)
30MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(@" 57MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(@" 85MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(@"
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 (13)
168MockLogger logger = new MockLogger(); 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); 1388MockLogger logger = new MockLogger(); 1415MockLogger logger = new MockLogger(_testOutput); 1441MockLogger logger = new MockLogger(_testOutput); 1474var logger = new MockLogger(); 1510var logger = new MockLogger();
MSBuildInternalMessage_Tests.cs (5)
49MockLogger logger = new MockLogger(_testOutput); 92MockLogger logger = new MockLogger(_testOutput); 146MockLogger logger = new MockLogger(_testOutput); 221MockLogger logger = new MockLogger(_testOutput); 266MockLogger logger = new MockLogger(_testOutput);
ProjectExtensionsImportTestBase.cs (2)
227MockLogger logger = new MockLogger(); 254MockLogger logger = new MockLogger();
RegressionTests.cs (2)
79var logger = new MockLogger(_output); 104MockLogger logger = new MockLogger(_output);
ResolveSDKReference_Tests.cs (5)
3809MockLogger logger = new MockLogger(); 3952MockLogger logger = new MockLogger(); 4061MockLogger logger = new MockLogger(); 4158MockLogger logger = new MockLogger(); 4291MockLogger logger = new MockLogger();
ResourceHandling\GenerateResource_Tests.cs (2)
3117MockLogger logger = new MockLogger(_output); 3302MockLogger logger = new MockLogger(_output);
ResourceManagement_Tests.cs (1)
148var logger = projectFile.BuildProjectExpectSuccess();
RoslynCodeTaskFactory_Tests.cs (3)
207var logger = p1.BuildProjectExpectSuccess(); 645var logger = proj.BuildProjectExpectFailure(); 760var logger = project.BuildProjectExpectSuccess();
SGen_Tests.cs (1)
24MockLogger logger = ObjectModelHelpers.BuildProjectExpectFailure(@$"
XmlPeek_Tests.cs (2)
327MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(projectContents); 336MockLogger log = new();
XmlPoke_Tests.cs (4)
144MockLogger log = new(); 156MockLogger log = new(); 169MockLogger log = new(); 325MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(projectContents);
Microsoft.Build.UnitTests.Shared (29)
EngineTestEnvironment.cs (7)
136public MockLogger BuildProjectExpectFailure(IDictionary<string, string> globalProperties = null, string toolsVersion = null, bool validateLoggerRoundtrip = true) 138BuildProject(globalProperties, toolsVersion, out MockLogger logger, validateLoggerRoundtrip).ShouldBeFalse(); 142public MockLogger BuildProjectExpectSuccess(IDictionary<string, string> globalProperties = null, string toolsVersion = null, bool validateLoggerRoundtrip = true) 144BuildProject(globalProperties, toolsVersion, out MockLogger logger, validateLoggerRoundtrip).ShouldBeTrue(); 171var logger = new MockLogger(); 207out MockLogger mockLogger, 212mockLogger = expectedLoggers.OfType<MockLogger>().First();
MockEngine.cs (1)
63public MockLogger MockLogger { get; }
ObjectModelHelpers.cs (21)
755public static MockLogger BuildProjectExpectSuccess( 760MockLogger logger = new MockLogger(testOutputHelper, verbosity: loggerVerbosity); 786public static MockLogger BuildProjectExpectFailure([StringSyntax(StringSyntaxAttribute.Xml)] string projectContents) 788MockLogger logger = new MockLogger(); 944public static void BuildTempProjectFileExpectSuccess(string projectFileRelativePath, MockLogger logger) 952public static void BuildTempProjectFileWithTargetsExpectSuccess(string projectFileRelativePath, string[] targets, IDictionary<string, string> additionalProperties, MockLogger logger) 961public static void BuildTempProjectFileExpectFailure(string projectFileRelativePath, MockLogger logger) 1345public static MockLogger BuildProjectWithNewOMExpectSuccess(string content, Dictionary<string, string> globalProperties = null, MockLogger logger = null) 1356private static void BuildProjectWithNewOM([StringSyntax(StringSyntaxAttribute.Xml)] string content, ref MockLogger logger, out bool result, bool allowTaskCrash, Dictionary<string, string> globalProperties = null) 1386public static MockLogger BuildProjectContentUsingBuildManagerExpectResult([StringSyntax(StringSyntaxAttribute.Xml)] string content, BuildResultCode expectedResult) 1388var logger = new MockLogger(); 1397public static BuildResult BuildProjectContentUsingBuildManager([StringSyntax(StringSyntaxAttribute.Xml)] string content, MockLogger logger, BuildParameters parameters = null) 1412MockLogger logger = null, 1483MockLogger mockLogger = (testOutput == null) ? new MockLogger() : new MockLogger(testOutput); 1515private static void VerifyErrorLoggedForDriveEnumeratingWildcard(BuildResult buildResult, MockLogger mockLogger, string targetName, string testProjectFile) 1524private static void VerifyWarningLoggedForDriveEnumeratingWildcard(BuildResult buildResult, MockLogger mockLogger, string targetName, string testProjectFile) 1532private static void VerifyNoErrorsAndWarningsForDriveEnumeratingWildcard(BuildResult buildResult, MockLogger mockLogger, string targetName) 1549public static MockLogger BuildProjectWithNewOMExpectFailure(string content, bool allowTaskCrash, MockLogger logger = null) 2068public MockLogger Logger { get; set; }
Microsoft.Build.Utilities.UnitTests (8)
MuxLogger_Tests.cs (8)
93MockLogger mockLogger2 = new MockLogger(); 111MockLogger mockLogger = new MockLogger(); 156MockLogger mockLogger = new MockLogger(); 209MockLogger mockLogger1 = new MockLogger(); 210MockLogger mockLogger2 = new MockLogger(); 264MockLogger mockLogger1 = new MockLogger(); 265MockLogger mockLogger2 = new MockLogger(); 314MockLogger mockLogger = new MockLogger();