133 references to AssertLogContains
Microsoft.Build.Tasks.UnitTests (132)
CombinePath_Tests.cs (1)
214
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3095");
CombineTargetFrameworkInfoProperties_Tests.cs (1)
33
e.
AssertLogContains
(errorCode);
Copy_Tests.cs (29)
346
engine.
AssertLogContains
(destinationFiles == null ? "MSB3023" : "MSB3094");
370
engine.
AssertLogContains
("MSB3022"); // Copy.ExactlyOneTypeOfDestination
394
engine.
AssertLogContains
("MSB3896"); // Copy.IncompatibleParameters
416
engine.
AssertLogContains
("MSB3094"); // General.TwoVectorsMustHaveSameLength
442
engine.
AssertLogContains
("MSB3028"); // Copy.InvalidRetryCount
468
engine.
AssertLogContains
("MSB3029"); // Copy.InvalidRetryDelay
863
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3026");
867
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3027");
868
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3021");
1241
engine.
AssertLogContains
("MSB3021");
1288
engine.
AssertLogContains
("MSB3030");
1335
engine.
AssertLogContains
("MSB3025");
1376
engine.
AssertLogContains
("MSB3021"); // copy failed
1377
engine.
AssertLogContains
("MSB3026"); // DID retry
1381
engine.
AssertLogContains
(Process.GetCurrentProcess().Id.ToString()); // the file is locked by the current process
1503
engine.
AssertLogContains
("MSB3021"); // copy failed
1551
engine.
AssertLogContains
("MSB3024");
2304
engine.
AssertLogContains
("MSB3028");
2326
engine.
AssertLogContains
("MSB3029");
2420
engine.
AssertLogContains
("MSB3026");
2447
engine.
AssertLogContains
("MSB3026");
2479
engine.
AssertLogContains
("MSB3026");
2480
engine.
AssertLogContains
("MSB3027");
2508
engine.
AssertLogContains
("MSB3026");
2509
engine.
AssertLogContains
("MSB3027");
2537
engine.
AssertLogContains
("MSB3893");
2673
me.
AssertLogContains
("0x80070011");
2768
me.
AssertLogContains
("0x80070476");
2923
engine.
AssertLogContains
("MSB3892");
CreateItem_Tests.cs (4)
307
engine.
AssertLogContains
("MSB5029");
308
engine.
AssertLogContains
(engine.ProjectFileOfTaskNode);
359
engine.
AssertLogContains
("MSB5029");
360
engine.
AssertLogContains
(engine.ProjectFileOfTaskNode);
Delete_Tests.cs (1)
72
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3062");
Exec_Tests.cs (26)
97
engine.
AssertLogContains
("LANG=en_US.UTF-8");
98
engine.
AssertLogContains
("LC_ALL=en_US.UTF-8");
152
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB3073");
155
((MockEngine)exec.BuildEngine).
AssertLogContains
("cp: ");
171
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB5002");
182
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB5018");
202
mockEngine.
AssertLogContains
("MSB5002");
249
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB3073");
286
((MockEngine)exec.BuildEngine).
AssertLogContains
("[" + working + "]");
320
((MockEngine)exec.BuildEngine).
AssertLogContains
("[" + expected + "]");
353
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
391
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
428
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
465
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
605
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
630
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB6003");
643
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB6003");
666
e.
AssertLogContains
("MSB3076");
688
e.
AssertLogContains
("ALERT:This is an error");
697
e.
AssertLogContains
("ALERT:This is an error");
720
e.
AssertLogContains
("YOOHOO:This is a warning");
730
e.
AssertLogContains
("YOOHOO:This is a warning");
777
((MockEngine)exec.BuildEngine).
AssertLogContains
("unmatched curly {");
794
((MockEngine)exec.BuildEngine).
AssertLogContains
("unmatched curly {");
886
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB3072");
902
((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)
206
engine.
AssertLogContains
("MSB3784");
225
engine.
AssertLogContains
("MSB3784");
244
engine.
AssertLogContains
("MSB3786");
262
engine.
AssertLogContains
("MSB3785");
Move_Tests.cs (5)
516
((MockEngine)move.BuildEngine).
AssertLogContains
("MSB3677");
536
((MockEngine)move.BuildEngine).
AssertLogContains
("MSB3679");
552
((MockEngine)move.BuildEngine).
AssertLogContains
("MSB3678");
567
((MockEngine)move.BuildEngine).
AssertLogContains
("MSB3676");
582
((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)
413
engine.
AssertLogContains
(warning);
416
engine.
AssertLogContains
(warning);
419
engine.
AssertLogContains
(warning);
422
engine.
AssertLogContains
(warning);
453
engine.
AssertLogContains
(warning);
509
engine.
AssertLogContains
(warning);
567
engine.
AssertLogContains
(errorMessage);
672
engine.
AssertLogContains
(errorMessage);
895
engine.
AssertLogContains
(errorMessage);
1528
engine.
AssertLogContains
("MSB3775");
1585
engine.
AssertLogContains
("MSB3775");
2360
engine.
AssertLogContains
(message);
2363
engine.
AssertLogContains
(errorMessage);
2366
engine.
AssertLogContains
(errorMessage);
2432
engine.
AssertLogContains
(errorMessage);
2435
engine.
AssertLogContains
(errorMessage);
3405
engine.
AssertLogContains
("MSB3779");
3547
engine.
AssertLogContains
("MSB3779");
3683
engine.
AssertLogContains
("MSB3779");
ResourceHandling\GenerateResource_Tests.cs (1)
3719
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3552");
WriteCodeFragment_Tests.cs (10)
37
engine.
AssertLogContains
("MSB3712");
53
engine.
AssertLogContains
("MSB3098");
69
engine.
AssertLogContains
("MSB3711");
259
engine.
AssertLogContains
("MSB3713");
277
engine.
AssertLogContains
("MSB3713");
485
engine.
AssertLogContains
("MSB3098");
633
engine.
AssertLogContains
("MSB3714");
656
engine.
AssertLogContains
("MSB3098");
679
engine.
AssertLogContains
("MSB3098");
1138
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);