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)
354
engine.
AssertLogContains
(destinationFiles == null ? "MSB3023" : "MSB3094");
379
engine.
AssertLogContains
("MSB3022"); // Copy.ExactlyOneTypeOfDestination
404
engine.
AssertLogContains
("MSB3896"); // Copy.IncompatibleParameters
427
engine.
AssertLogContains
("MSB3094"); // General.TwoVectorsMustHaveSameLength
454
engine.
AssertLogContains
("MSB3028"); // Copy.InvalidRetryCount
481
engine.
AssertLogContains
("MSB3029"); // Copy.InvalidRetryDelay
882
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3026");
886
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3027");
887
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3021");
1265
engine.
AssertLogContains
("MSB3021");
1313
engine.
AssertLogContains
("MSB3030");
1361
engine.
AssertLogContains
("MSB3025");
1403
engine.
AssertLogContains
("MSB3021"); // copy failed
1404
engine.
AssertLogContains
("MSB3026"); // DID retry
1408
engine.
AssertLogContains
(Process.GetCurrentProcess().Id.ToString()); // the file is locked by the current process
1532
engine.
AssertLogContains
("MSB3021"); // copy failed
1581
engine.
AssertLogContains
("MSB3024");
2349
engine.
AssertLogContains
("MSB3028");
2372
engine.
AssertLogContains
("MSB3029");
2470
engine.
AssertLogContains
("MSB3026");
2498
engine.
AssertLogContains
("MSB3026");
2533
engine.
AssertLogContains
("MSB3026");
2534
engine.
AssertLogContains
("MSB3027");
2563
engine.
AssertLogContains
("MSB3026");
2564
engine.
AssertLogContains
("MSB3027");
2593
engine.
AssertLogContains
("MSB3893");
2731
me.
AssertLogContains
("0x80070011");
2827
me.
AssertLogContains
("0x80070476");
2985
engine.
AssertLogContains
("MSB3892");
CreateItem_Tests.cs (4)
306
engine.
AssertLogContains
("MSB5029");
307
engine.
AssertLogContains
(engine.ProjectFileOfTaskNode);
358
engine.
AssertLogContains
("MSB5029");
359
engine.
AssertLogContains
(engine.ProjectFileOfTaskNode);
Delete_Tests.cs (1)
74
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3062");
Exec_Tests.cs (26)
96
engine.
AssertLogContains
("LANG=en_US.UTF-8");
97
engine.
AssertLogContains
("LC_ALL=en_US.UTF-8");
151
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB3073");
154
((MockEngine)exec.BuildEngine).
AssertLogContains
("cp: ");
170
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB5002");
181
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB5018");
201
mockEngine.
AssertLogContains
("MSB5002");
252
engine.
AssertLogContains
("MSB3077");
296
((MockEngine)exec.BuildEngine).
AssertLogContains
("[" + working + "]");
330
((MockEngine)exec.BuildEngine).
AssertLogContains
("[" + expected + "]");
363
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
401
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
438
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
475
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
615
((MockEngine)exec.BuildEngine).
AssertLogContains
("[hello]");
640
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB6003");
653
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB6003");
676
e.
AssertLogContains
("MSB3076");
698
e.
AssertLogContains
("ALERT:This is an error");
707
e.
AssertLogContains
("ALERT:This is an error");
730
e.
AssertLogContains
("YOOHOO:This is a warning");
740
e.
AssertLogContains
("YOOHOO:This is a warning");
787
((MockEngine)exec.BuildEngine).
AssertLogContains
("unmatched curly {");
804
((MockEngine)exec.BuildEngine).
AssertLogContains
("unmatched curly {");
896
((MockEngine)exec.BuildEngine).
AssertLogContains
("MSB3072");
912
((MockEngine)exec.BuildEngine).
AssertLogContains
("[myvalue]");
FindInvalidProjectReferences_Tests.cs (2)
52
engine.
AssertLogContains
(warning3);
55
engine.
AssertLogContains
(warning4);
GenerateBindingRedirects_Tests.cs (2)
148
redirectResults.Engine.
AssertLogContains
("MSB3836");
258
redirectResults.Engine.
AssertLogContains
("MSB3835");
GetCompatiblePlatform_Tests.cs (4)
173
((MockEngine)task.BuildEngine).
AssertLogContains
("MSB3981");
196
((MockEngine)task.BuildEngine).
AssertLogContains
("MSB3982");
221
((MockEngine)task.BuildEngine).
AssertLogContains
("MSB3983");
247
((MockEngine)task.BuildEngine).
AssertLogContains
("MSB3983");
GetInstalledSDKLocations_Tests.cs (4)
208
engine.
AssertLogContains
("MSB3784");
227
engine.
AssertLogContains
("MSB3784");
246
engine.
AssertLogContains
("MSB3786");
264
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)
987
mockEngine.
AssertLogContains
("SecondProject");
1010
mockEngine.
AssertLogContains
("SecondProject");
1236
mockEngine.
AssertLogContains
("Proj2 T1 message");
1237
mockEngine.
AssertLogContains
("Proj2 T2 message");
1245
mockEngine.
AssertLogContains
("Proj2 T1 message");
1255
mockEngine.
AssertLogContains
("Proj2 T1 message");
1256
mockEngine.
AssertLogContains
("Proj2 T2 message");
1264
mockEngine.
AssertLogContains
("Proj2 T1 message");
1265
mockEngine.
AssertLogContains
("Proj2 T2 message");
1273
mockEngine.
AssertLogContains
("Proj2 T1 message");
1282
mockEngine.
AssertLogContains
("Proj2 T1 message");
RemoveDir_Tests.cs (1)
119
((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)
347
engine.
AssertLogContains
("MSB3107");
354
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)
3988
((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)
47
((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);