238 references to AssertLogContains
Microsoft.Build.Tasks.UnitTests (237)
AssemblyDependency\AssemblyFoldersFromConfig_Tests.cs (1)
187
engine.
AssertLogContains
(") specified in Microsoft.Common.CurrentVersion.targets was invalid. The error was: ");
AssemblyDependency\FilePrimary.cs (2)
120
engine.
AssertLogContains
("MSB3249");
171
engine.
AssertLogContains
("MSB3249");
AssemblyDependency\Miscellaneous.cs (34)
192
engine.
AssertLogContains
(message);
1372
mockEngine.
AssertLogContains
(message);
2436
engine.
AssertLogContains
(
3149
engine.
AssertLogContains
(
3170
engine.
AssertLogContains
(
3302
engine.
AssertLogContains
("MSB3246");
3309
engine.
AssertLogContains
("'C:\\WINNT\\Microsoft.NET\\Framework\\v2.0.MyVersion\\BadImage.dll'"); // just search for the un-localized part
5227
e.
AssertLogContains
("MSB3250");
5855
engine.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.NoRedistAssembliesToGenerateExclusionList"));
6357
mockEngine.
AssertLogContains
(warningMessage);
6592
mockEngine.
AssertLogContains
(warningMessage);
6593
mockEngine.
AssertLogContains
(warningMessage2);
6639
mockEngine.
AssertLogContains
(warningMessage);
6640
mockEngine.
AssertLogContains
(warningMessage2);
6802
mockEngine.
AssertLogContains
(message);
6870
mockEngine.
AssertLogContains
(message);
6902
mockEngine.
AssertLogContains
(warningMessage);
6959
mockEngine.
AssertLogContains
(rar.Log.FormatResourceString("ResolveAssemblyReference.CannotSetProfileAndSubSet"));
6976
mockEngine.
AssertLogContains
(rar.Log.FormatResourceString("ResolveAssemblyReference.CannotSetProfileAndSubSet"));
6992
mockEngine.
AssertLogContains
(rar.Log.FormatResourceString("ResolveAssemblyReference.MustSetProfileNameAndFolderLocations"));
7009
mockEngine.
AssertLogContains
(rar.Log.FormatResourceString("ResolveAssemblyReference.FrameworkDirectoryOnProfiles", item.ItemSpec));
7217
engine.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.UsingExclusionList"));
7288
engine.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.UsingExclusionList"));
7289
engine.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.NoSubsetsFound"));
7325
engine.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.NoExclusionListBecauseofFullClientName", "Full"));
7360
engine.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.NoExclusionListBecauseofFullClientName", "Full"));
7394
engine.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.NoExclusionListBecauseofFullClientName", "Full"));
7711
e.
AssertLogContains
(
8163
e.
AssertLogContains
(warningMessage);
8257
e.
AssertLogContains
("MSB3252");
8307
e.
AssertLogContains
("MSB3252");
8359
e.
AssertLogContains
(warningMessage);
8414
e.
AssertLogContains
("MSB3263");
8528
mockEngine.
AssertLogContains
(rar.Log.FormatResourceString("ResolveAssemblyReference.SearchPathAddedByParentAssembly",
AssemblyDependency\StronglyNamedDependency.cs (3)
78
engine.
AssertLogContains
(
81
engine.
AssertLogContains
(
123
engine.
AssertLogContains
(
AssemblyDependency\StronglyNamedDependencyAppConfig.cs (8)
81
engine.
AssertLogContains
(
261
engine.
AssertLogContains
(
320
engine.
AssertLogContains
(
323
engine.
AssertLogContains
(
326
engine.
AssertLogContains
(
379
engine.
AssertLogContains
(
465
engine.
AssertLogContains
(
509
engine.
AssertLogContains
(
AssemblyDependency\StronglyNamedDependencyAutoUnify.cs (10)
87
engine.
AssertLogContains
(
90
engine.
AssertLogContains
(
316
engine.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.FailBecauseDependentAssemblyInExclusionList", assemblyNames[0].ItemSpec, "UniFYme, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", stringList));
317
engine.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.DependencyReferenceOutsideOfFramework", assemblyNames[1].ItemSpec, "UniFYme, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "2.0.0.0", "1.0.0.0"));
391
engine.
AssertLogContains
(
394
engine.
AssertLogContains
(
445
engine.
AssertLogContains
(
448
engine.
AssertLogContains
(
451
engine.
AssertLogContains
(
495
engine.
AssertLogContains
(
AssemblyDependency\VerifyIgnoreVersionForFrameworkReference.cs (6)
73
e.
AssertLogContains
("MSB3257");
74
e.
AssertLogContains
("DependsOn9");
126
e.
AssertLogContains
("MSB3257");
127
e.
AssertLogContains
("DependsOn9");
188
e.
AssertLogContains
("MSB3257");
189
e.
AssertLogContains
("DependsOn9");
AssemblyDependency\VerifyTargetFrameworkAttribute.cs (2)
249
e.
AssertLogContains
("MSB3275");
343
e.
AssertLogContains
("MSB3274");
AssemblyDependency\VerifyTargetFrameworkHigherThanRedist.cs (13)
121
e.
AssertLogContains
("MSB3257");
122
e.
AssertLogContains
("ReferenceVersion9");
150
e.
AssertLogContains
("Microsoft.Build.dll");
199
e.
AssertLogContains
("ReferenceVersion9");
256
e.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.DependencyReferenceOutsideOfFramework", "DependsOn9", "System, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "9.0.0.0", "4.0.0.0"));
257
e.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.DependencyReferenceOutsideOfFramework", "DependsOn9", "System.Data, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "9.0.0.0", "4.0.0.0"));
286
e.
AssertLogContains
("DependsOnMSBuild12");
287
e.
AssertLogContains
("Microsoft.Build.dll");
296
e.
AssertLogContains
("DependsOnMSBuild12");
308
e.
AssertLogContains
("DependsOnMSBuild12");
373
e.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.DependencyReferenceOutsideOfFramework", "DependsOn9Also", "System, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "9.0.0.0", "4.0.0.0"));
438
e.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.DependencyReferenceOutsideOfFramework", "DependsOn9, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b17a5c561934e089", "System, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "9.0.0.0", "4.0.0.0"));
439
e.
AssertLogContains
(t.Log.FormatResourceString("ResolveAssemblyReference.DependencyReferenceOutsideOfFramework", "DependsOn9, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b17a5c561934e089", "System, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "9.0.0.0", "4.0.0.0"));
AssemblyDependency\WinMDTests.cs (2)
583
engine.
AssertLogContains
(fullMessage);
723
engine.
AssertLogContains
(fullMessage);
AxTlbBaseTask_Tests.cs (1)
345
e.
AssertLogContains
(errorMessage);
CombinePath_Tests.cs (1)
214
((MockEngine)t.BuildEngine).
AssertLogContains
("MSB3095");
CombineTargetFrameworkInfoProperties_Tests.cs (1)
33
e.
AssertLogContains
(errorCode);
Copy_Tests.cs (30)
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
1447
engine.
AssertLogContains
("MSB3021"); // copy failed
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");
ErrorWarningMessage_Tests.cs (6)
101
e.
AssertLogContains
("c:\\file(0,0): WARNING : warningtext");
226
e.
AssertLogContains
("c:\\file(0,0): ERROR : errortext");
251
e.
AssertLogContains
(message);
279
e.
AssertLogContains
(updatedMessage);
306
e.
AssertLogContains
(message);
333
e.
AssertLogContains
("MSB3861");
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");
GetReferencePaths_Tests.cs (4)
166
engine.
AssertLogContains
("ERROR MSB3644: " + message);
223
engine.
AssertLogContains
(message);
271
engine.
AssertLogContains
("MSB3643");
281
engine.
AssertLogContains
(message);
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 (14)
988
mockEngine.
AssertLogContains
("SecondProject");
1011
mockEngine.
AssertLogContains
("SecondProject");
1078
mockEngine.
AssertLogContains
("SecondProject");
1089
mockEngine.
AssertLogContains
("SecondProject");
1112
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");
ResolveComReference_Tests.cs (2)
454
e.
AssertLogContains
("MSB3300");
467
e.
AssertLogContains
("MSB3301");
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");
ResourceHandling\ResGen_Tests.cs (1)
529
e.
AssertLogContains
(message);
SdkToolsPathUtility_Tests.cs (5)
50
_mockEngine.
AssertLogContains
(comment);
54
_mockEngine.
AssertLogContains
(comment);
174
_mockEngine.
AssertLogContains
(comment);
177
_mockEngine.
AssertLogContains
(comment);
189
_mockEngine.
AssertLogContains
("MSB3666");
WriteCodeFragment_Tests.cs (11)
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");
1074
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.");
1158
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)
414
AssertLogContains
(stringToSearchFor);