134 references to AssertLogContains
Microsoft.Build.Tasks.UnitTests (133)
CombinePath_Tests.cs (1)
214
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3095");
CombineTargetFrameworkInfoProperties_Tests.cs (1)
33
e.
AssertLogContains
(errorCode);
Copy_Tests.cs (29)
355
engine.
AssertLogContains
(destinationFiles == null ? "MSB3023" : "MSB3094");
380
engine.
AssertLogContains
("MSB3022"); // Copy.ExactlyOneTypeOfDestination
405
engine.
AssertLogContains
("MSB3896"); // Copy.IncompatibleParameters
428
engine.
AssertLogContains
("MSB3094"); // General.TwoVectorsMustHaveSameLength
455
engine.
AssertLogContains
("MSB3028"); // Copy.InvalidRetryCount
482
engine.
AssertLogContains
("MSB3029"); // Copy.InvalidRetryDelay
883
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3026");
887
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3027");
888
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3021");
1266
engine.
AssertLogContains
("MSB3021");
1314
engine.
AssertLogContains
("MSB3030");
1362
engine.
AssertLogContains
("MSB3025");
1404
engine.
AssertLogContains
("MSB3021"); // copy failed
1405
engine.
AssertLogContains
("MSB3026"); // DID retry
1409
engine.
AssertLogContains
(Process.GetCurrentProcess().Id.ToString()); // the file is locked by the current process
1533
engine.
AssertLogContains
("MSB3021"); // copy failed
1582
engine.
AssertLogContains
("MSB3024");
2350
engine.
AssertLogContains
("MSB3028");
2373
engine.
AssertLogContains
("MSB3029");
2471
engine.
AssertLogContains
("MSB3026");
2499
engine.
AssertLogContains
("MSB3026");
2534
engine.
AssertLogContains
("MSB3026");
2535
engine.
AssertLogContains
("MSB3027");
2564
engine.
AssertLogContains
("MSB3026");
2565
engine.
AssertLogContains
("MSB3027");
2594
engine.
AssertLogContains
("MSB3893");
2732
me.
AssertLogContains
("0x80070011");
2828
me.
AssertLogContains
("0x80070476");
2986
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)
74
((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");
253
engine.
AssertLogContains
("MSB3077");
297
((MockEngine)exec.BuildEngine).
AssertLogContains
("[" + working + "]");
331
((MockEngine)exec.BuildEngine).
AssertLogContains
("[" + expected + "]");
364
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
402
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
439
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
476
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
616
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
641
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB6003");
654
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB6003");
677
e.
AssertLogContains
("MSB3076");
699
e.
AssertLogContains
("ALERT:This is an error");
708
e.
AssertLogContains
("ALERT:This is an error");
731
e.
AssertLogContains
("YOOHOO:This is a warning");
741
e.
AssertLogContains
("YOOHOO:This is a warning");
788
((MockEngine)exec.BuildEngine).
AssertLogContains
("unmatched curly {");
805
((MockEngine)exec.BuildEngine).
AssertLogContains
("unmatched curly {");
897
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB3072");
913
((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)
526
((MockEngine)move.BuildEngine).
AssertLogContains
("MSB3677");
546
((MockEngine)move.BuildEngine).
AssertLogContains
("MSB3679");
562
((MockEngine)move.BuildEngine).
AssertLogContains
("MSB3678");
578
((MockEngine)move.BuildEngine).
AssertLogContains
("MSB3676");
594
((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)
120
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3232");
ResolveCodeAnalysisRuleSet_Tests.cs (6)
69
mockEngine.
AssertLogContains
("MSB3884");
112
mockEngine.
AssertLogContains
("MSB3884");
163
mockEngine.
AssertLogContains
("MSB3884");
213
mockEngine.
AssertLogContains
("MSB3884");
237
mockEngine.
AssertLogContains
("MSB3884");
290
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)
3989
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3552");
WriteCodeFragment_Tests.cs (11)
39
engine.
AssertLogContains
("MSB3712");
56
engine.
AssertLogContains
("MSB3098");
73
engine.
AssertLogContains
("MSB3711");
269
engine.
AssertLogContains
("MSB3713");
288
engine.
AssertLogContains
("MSB3713");
552
engine.
AssertLogContains
("MSB3098");
705
engine.
AssertLogContains
("MSB3714");
729
engine.
AssertLogContains
("MSB3098");
753
engine.
AssertLogContains
("MSB3098");
1151
engine.
AssertLogContains
("Could not infer the type of parameter \"_Parameter1\" because the attribute type \"System.TheAttributeCannotFound\" is unknown. The value will be treated as a string.");
1236
engine.
AssertLogContains
(errorCode);
WriteLinesToFile_Tests.cs (1)
48
((MockEngine)a.BuildEngine).
AssertLogContains
("MSB3098");
XmlPoke_Tests.cs (2)
238
engine.
AssertLogContains
("MSB3731");
255
engine.
AssertLogContains
("MSB3732");
Microsoft.Build.UnitTests.Shared (1)
MockEngine.cs (1)
414
AssertLogContains
(stringToSearchFor);