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