132 references to AssertLogContains
Microsoft.Build.Tasks.UnitTests (131)
CombinePath_Tests.cs (1)
216
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3095");
CombineTargetFrameworkInfoProperties_Tests.cs (1)
34
e.
AssertLogContains
(errorCode);
Copy_Tests.cs (29)
351
engine.
AssertLogContains
(destinationFiles == null ? "MSB3023" : "MSB3094");
375
engine.
AssertLogContains
("MSB3022"); // Copy.ExactlyOneTypeOfDestination
399
engine.
AssertLogContains
("MSB3896"); // Copy.IncompatibleParameters
421
engine.
AssertLogContains
("MSB3094"); // General.TwoVectorsMustHaveSameLength
447
engine.
AssertLogContains
("MSB3028"); // Copy.InvalidRetryCount
473
engine.
AssertLogContains
("MSB3029"); // Copy.InvalidRetryDelay
868
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3026");
872
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3027");
873
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3021");
1246
engine.
AssertLogContains
("MSB3021");
1293
engine.
AssertLogContains
("MSB3030");
1340
engine.
AssertLogContains
("MSB3025");
1381
engine.
AssertLogContains
("MSB3021"); // copy failed
1382
engine.
AssertLogContains
("MSB3026"); // DID retry
1386
engine.
AssertLogContains
(Process.GetCurrentProcess().Id.ToString()); // the file is locked by the current process
1508
engine.
AssertLogContains
("MSB3021"); // copy failed
1556
engine.
AssertLogContains
("MSB3024");
2309
engine.
AssertLogContains
("MSB3028");
2331
engine.
AssertLogContains
("MSB3029");
2425
engine.
AssertLogContains
("MSB3026");
2452
engine.
AssertLogContains
("MSB3026");
2484
engine.
AssertLogContains
("MSB3026");
2485
engine.
AssertLogContains
("MSB3027");
2513
engine.
AssertLogContains
("MSB3026");
2514
engine.
AssertLogContains
("MSB3027");
2542
engine.
AssertLogContains
("MSB3893");
2678
me.
AssertLogContains
("0x80070011");
2773
me.
AssertLogContains
("0x80070476");
2928
engine.
AssertLogContains
("MSB3892");
CreateItem_Tests.cs (4)
311
engine.
AssertLogContains
("MSB5029");
312
engine.
AssertLogContains
(engine.ProjectFileOfTaskNode);
363
engine.
AssertLogContains
("MSB5029");
364
engine.
AssertLogContains
(engine.ProjectFileOfTaskNode);
Delete_Tests.cs (1)
73
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3062");
Exec_Tests.cs (25)
98
engine.
AssertLogContains
("LANG=en_US.UTF-8");
99
engine.
AssertLogContains
("LC_ALL=en_US.UTF-8");
153
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB3073");
156
((MockEngine)exec.BuildEngine).
AssertLogContains
("cp: ");
172
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB5002");
192
mockEngine.
AssertLogContains
("MSB5002");
239
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB3073");
276
((MockEngine)exec.BuildEngine).
AssertLogContains
("[" + working + "]");
310
((MockEngine)exec.BuildEngine).
AssertLogContains
("[" + expected + "]");
343
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
381
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
418
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
455
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
595
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
620
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB6003");
633
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB6003");
656
e.
AssertLogContains
("MSB3076");
678
e.
AssertLogContains
("ALERT:This is an error");
687
e.
AssertLogContains
("ALERT:This is an error");
710
e.
AssertLogContains
("YOOHOO:This is a warning");
720
e.
AssertLogContains
("YOOHOO:This is a warning");
767
((MockEngine)exec.BuildEngine).
AssertLogContains
("unmatched curly {");
784
((MockEngine)exec.BuildEngine).
AssertLogContains
("unmatched curly {");
876
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB3072");
892
((MockEngine)exec.BuildEngine).
AssertLogContains
("[myvalue]");
FindInvalidProjectReferences_Tests.cs (2)
52
engine.
AssertLogContains
(warning3);
55
engine.
AssertLogContains
(warning4);
GenerateBindingRedirects_Tests.cs (2)
149
redirectResults.Engine.
AssertLogContains
("MSB3836");
259
redirectResults.Engine.
AssertLogContains
("MSB3835");
GetCompatiblePlatform_Tests.cs (4)
174
((MockEngine)task.BuildEngine).
AssertLogContains
("MSB3981");
197
((MockEngine)task.BuildEngine).
AssertLogContains
("MSB3982");
222
((MockEngine)task.BuildEngine).
AssertLogContains
("MSB3983");
248
((MockEngine)task.BuildEngine).
AssertLogContains
("MSB3983");
GetInstalledSDKLocations_Tests.cs (4)
207
engine.
AssertLogContains
("MSB3784");
226
engine.
AssertLogContains
("MSB3784");
245
engine.
AssertLogContains
("MSB3786");
263
engine.
AssertLogContains
("MSB3785");
Move_Tests.cs (5)
517
((MockEngine)move.BuildEngine).
AssertLogContains
("MSB3677");
537
((MockEngine)move.BuildEngine).
AssertLogContains
("MSB3679");
553
((MockEngine)move.BuildEngine).
AssertLogContains
("MSB3678");
568
((MockEngine)move.BuildEngine).
AssertLogContains
("MSB3676");
583
((MockEngine)move.BuildEngine).
AssertLogContains
("MSB3681");
MSBuild_Tests.cs (11)
988
mockEngine.
AssertLogContains
("SecondProject");
1011
mockEngine.
AssertLogContains
("SecondProject");
1237
mockEngine.
AssertLogContains
("Proj2 T1 message");
1238
mockEngine.
AssertLogContains
("Proj2 T2 message");
1246
mockEngine.
AssertLogContains
("Proj2 T1 message");
1256
mockEngine.
AssertLogContains
("Proj2 T1 message");
1257
mockEngine.
AssertLogContains
("Proj2 T2 message");
1265
mockEngine.
AssertLogContains
("Proj2 T1 message");
1266
mockEngine.
AssertLogContains
("Proj2 T2 message");
1274
mockEngine.
AssertLogContains
("Proj2 T1 message");
1283
mockEngine.
AssertLogContains
("Proj2 T1 message");
RemoveDir_Tests.cs (1)
115
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3232");
ResolveCodeAnalysisRuleSet_Tests.cs (6)
68
mockEngine.
AssertLogContains
("MSB3884");
111
mockEngine.
AssertLogContains
("MSB3884");
162
mockEngine.
AssertLogContains
("MSB3884");
212
mockEngine.
AssertLogContains
("MSB3884");
236
mockEngine.
AssertLogContains
("MSB3884");
289
mockEngine.
AssertLogContains
("MSB3884");
ResolveNonMSBuildProjectOutput_Tests.cs (2)
348
engine.
AssertLogContains
("MSB3107");
355
engine.
AssertLogContains
("MSB3107");
ResolveSDKReference_Tests.cs (19)
414
engine.
AssertLogContains
(warning);
417
engine.
AssertLogContains
(warning);
420
engine.
AssertLogContains
(warning);
423
engine.
AssertLogContains
(warning);
454
engine.
AssertLogContains
(warning);
510
engine.
AssertLogContains
(warning);
568
engine.
AssertLogContains
(errorMessage);
673
engine.
AssertLogContains
(errorMessage);
896
engine.
AssertLogContains
(errorMessage);
1529
engine.
AssertLogContains
("MSB3775");
1586
engine.
AssertLogContains
("MSB3775");
2361
engine.
AssertLogContains
(message);
2364
engine.
AssertLogContains
(errorMessage);
2367
engine.
AssertLogContains
(errorMessage);
2433
engine.
AssertLogContains
(errorMessage);
2436
engine.
AssertLogContains
(errorMessage);
3406
engine.
AssertLogContains
("MSB3779");
3548
engine.
AssertLogContains
("MSB3779");
3684
engine.
AssertLogContains
("MSB3779");
ResourceHandling\GenerateResource_Tests.cs (1)
3721
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3552");
WriteCodeFragment_Tests.cs (10)
38
engine.
AssertLogContains
("MSB3712");
54
engine.
AssertLogContains
("MSB3098");
70
engine.
AssertLogContains
("MSB3711");
260
engine.
AssertLogContains
("MSB3713");
278
engine.
AssertLogContains
("MSB3713");
486
engine.
AssertLogContains
("MSB3098");
634
engine.
AssertLogContains
("MSB3714");
657
engine.
AssertLogContains
("MSB3098");
680
engine.
AssertLogContains
("MSB3098");
1139
engine.
AssertLogContains
(errorCode);
WriteLinesToFile_Tests.cs (1)
42
((MockEngine)a.BuildEngine).
AssertLogContains
("MSB3098");
XmlPoke_Tests.cs (2)
236
engine.
AssertLogContains
("MSB3731");
253
engine.
AssertLogContains
("MSB3732");
Microsoft.Build.UnitTests.Shared (1)
MockEngine.cs (1)
390
AssertLogContains
(stringToSearchFor);