132 references to AssertLogContains
Microsoft.Build.Tasks.UnitTests (131)
CombinePath_Tests.cs (1)
216((MockEngine)t.BuildEngine).AssertLogContains("MSB3095");
CombineTargetFrameworkInfoProperties_Tests.cs (1)
34e.AssertLogContains(errorCode);
Copy_Tests.cs (29)
351engine.AssertLogContains(destinationFiles == null ? "MSB3023" : "MSB3094"); 375engine.AssertLogContains("MSB3022"); // Copy.ExactlyOneTypeOfDestination 399engine.AssertLogContains("MSB3896"); // Copy.IncompatibleParameters 421engine.AssertLogContains("MSB3094"); // General.TwoVectorsMustHaveSameLength 447engine.AssertLogContains("MSB3028"); // Copy.InvalidRetryCount 473engine.AssertLogContains("MSB3029"); // Copy.InvalidRetryDelay 868((MockEngine)t.BuildEngine).AssertLogContains("MSB3026"); 872((MockEngine)t.BuildEngine).AssertLogContains("MSB3027"); 873((MockEngine)t.BuildEngine).AssertLogContains("MSB3021"); 1246engine.AssertLogContains("MSB3021"); 1293engine.AssertLogContains("MSB3030"); 1340engine.AssertLogContains("MSB3025"); 1381engine.AssertLogContains("MSB3021"); // copy failed 1382engine.AssertLogContains("MSB3026"); // DID retry 1386engine.AssertLogContains(Process.GetCurrentProcess().Id.ToString()); // the file is locked by the current process 1508engine.AssertLogContains("MSB3021"); // copy failed 1556engine.AssertLogContains("MSB3024"); 2309engine.AssertLogContains("MSB3028"); 2331engine.AssertLogContains("MSB3029"); 2425engine.AssertLogContains("MSB3026"); 2452engine.AssertLogContains("MSB3026"); 2484engine.AssertLogContains("MSB3026"); 2485engine.AssertLogContains("MSB3027"); 2513engine.AssertLogContains("MSB3026"); 2514engine.AssertLogContains("MSB3027"); 2542engine.AssertLogContains("MSB3893"); 2678me.AssertLogContains("0x80070011"); 2773me.AssertLogContains("0x80070476"); 2928engine.AssertLogContains("MSB3892");
CreateItem_Tests.cs (4)
311engine.AssertLogContains("MSB5029"); 312engine.AssertLogContains(engine.ProjectFileOfTaskNode); 363engine.AssertLogContains("MSB5029"); 364engine.AssertLogContains(engine.ProjectFileOfTaskNode);
Delete_Tests.cs (1)
73((MockEngine)t.BuildEngine).AssertLogContains("MSB3062");
Exec_Tests.cs (25)
98engine.AssertLogContains("LANG=en_US.UTF-8"); 99engine.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"); 192mockEngine.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"); 656e.AssertLogContains("MSB3076"); 678e.AssertLogContains("ALERT:This is an error"); 687e.AssertLogContains("ALERT:This is an error"); 710e.AssertLogContains("YOOHOO:This is a warning"); 720e.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)
52engine.AssertLogContains(warning3); 55engine.AssertLogContains(warning4);
GenerateBindingRedirects_Tests.cs (2)
149redirectResults.Engine.AssertLogContains("MSB3836"); 259redirectResults.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)
207engine.AssertLogContains("MSB3784"); 226engine.AssertLogContains("MSB3784"); 245engine.AssertLogContains("MSB3786"); 263engine.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)
988mockEngine.AssertLogContains("SecondProject"); 1011mockEngine.AssertLogContains("SecondProject"); 1237mockEngine.AssertLogContains("Proj2 T1 message"); 1238mockEngine.AssertLogContains("Proj2 T2 message"); 1246mockEngine.AssertLogContains("Proj2 T1 message"); 1256mockEngine.AssertLogContains("Proj2 T1 message"); 1257mockEngine.AssertLogContains("Proj2 T2 message"); 1265mockEngine.AssertLogContains("Proj2 T1 message"); 1266mockEngine.AssertLogContains("Proj2 T2 message"); 1274mockEngine.AssertLogContains("Proj2 T1 message"); 1283mockEngine.AssertLogContains("Proj2 T1 message");
RemoveDir_Tests.cs (1)
115((MockEngine)t.BuildEngine).AssertLogContains("MSB3232");
ResolveCodeAnalysisRuleSet_Tests.cs (6)
68mockEngine.AssertLogContains("MSB3884"); 111mockEngine.AssertLogContains("MSB3884"); 162mockEngine.AssertLogContains("MSB3884"); 212mockEngine.AssertLogContains("MSB3884"); 236mockEngine.AssertLogContains("MSB3884"); 289mockEngine.AssertLogContains("MSB3884");
ResolveNonMSBuildProjectOutput_Tests.cs (2)
348engine.AssertLogContains("MSB3107"); 355engine.AssertLogContains("MSB3107");
ResolveSDKReference_Tests.cs (19)
414engine.AssertLogContains(warning); 417engine.AssertLogContains(warning); 420engine.AssertLogContains(warning); 423engine.AssertLogContains(warning); 454engine.AssertLogContains(warning); 510engine.AssertLogContains(warning); 568engine.AssertLogContains(errorMessage); 673engine.AssertLogContains(errorMessage); 896engine.AssertLogContains(errorMessage); 1529engine.AssertLogContains("MSB3775"); 1586engine.AssertLogContains("MSB3775"); 2361engine.AssertLogContains(message); 2364engine.AssertLogContains(errorMessage); 2367engine.AssertLogContains(errorMessage); 2433engine.AssertLogContains(errorMessage); 2436engine.AssertLogContains(errorMessage); 3406engine.AssertLogContains("MSB3779"); 3548engine.AssertLogContains("MSB3779"); 3684engine.AssertLogContains("MSB3779");
ResourceHandling\GenerateResource_Tests.cs (1)
3721((MockEngine)t.BuildEngine).AssertLogContains("MSB3552");
WriteCodeFragment_Tests.cs (10)
38engine.AssertLogContains("MSB3712"); 54engine.AssertLogContains("MSB3098"); 70engine.AssertLogContains("MSB3711"); 260engine.AssertLogContains("MSB3713"); 278engine.AssertLogContains("MSB3713"); 486engine.AssertLogContains("MSB3098"); 634engine.AssertLogContains("MSB3714"); 657engine.AssertLogContains("MSB3098"); 680engine.AssertLogContains("MSB3098"); 1139engine.AssertLogContains(errorCode);
WriteLinesToFile_Tests.cs (1)
42((MockEngine)a.BuildEngine).AssertLogContains("MSB3098");
XmlPoke_Tests.cs (2)
236engine.AssertLogContains("MSB3731"); 253engine.AssertLogContains("MSB3732");
Microsoft.Build.UnitTests.Shared (1)
MockEngine.cs (1)
390AssertLogContains(stringToSearchFor);