89 references to AssertLogContainsMessageFromResource
Microsoft.Build.Tasks.UnitTests (89)
Copy_Tests.cs (7)
1138
engine.
AssertLogContainsMessageFromResource
(AssemblyResources.GetString,
1894
me.
AssertLogContainsMessageFromResource
(resourceDelegate, "Copy.HardLinkComment", sourceFile, destFile);
2581
me.
AssertLogContainsMessageFromResource
(resourceDelegate, "Copy.HardLinkComment", sourceFile, destFile);
2672
me.
AssertLogContainsMessageFromResource
(resourceDelegate, "Copy.HardLinkComment", sourceFile1, destFile1);
2767
me.
AssertLogContainsMessageFromResource
(resourceDelegate, "Copy.HardLinkComment", sourceFile, destFile);
2838
me.
AssertLogContainsMessageFromResource
(resourceDelegate, "Copy.SymbolicLinkComment", sourceFile, destFile);
2899
me.
AssertLogContainsMessageFromResource
(resourceDelegate, "Copy.HardLinkComment", sourceFile, destFile);
GetSDKReference_Tests.cs (57)
677
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty));
678
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty));
679
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty));
680
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty));
681
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty));
682
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty));
683
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty));
684
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty));
726
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty));
727
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty));
728
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty));
729
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty));
730
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty));
767
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.CannotHaveEmptyTargetConfiguration", _sdkDirectory);
790
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.CannotHaveEmptyTargetArchitecture", _sdkDirectory);
818
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty));
819
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty));
820
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty));
821
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty));
822
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty));
823
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty));
824
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty));
825
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty));
870
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty));
871
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty));
872
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty));
873
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty));
874
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty));
875
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty));
876
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty));
877
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty));
1020
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath"));
1021
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath"));
1022
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath"));
1023
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath"));
1024
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath"));
1052
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath"));
1053
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath"));
1054
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath"));
1055
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath"));
1056
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath"));
1084
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath"));
1085
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath"));
1086
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath"));
1087
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath"));
1088
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath"));
1114
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.ConflictReferenceSameSDK", "SDKWithManifest, Version=2.0", "References\\Retail\\X86\\A.winmd", "References\\CommonConfiguration\\Neutral\\A.dll");
1115
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.ConflictReferenceSameSDK", "SDKWithManifest, Version=2.0", "References\\Retail\\X86\\A.winmd", "References\\CommonConfiguration\\Neutral\\A.winmd");
1143
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.ConflictReferenceSameSDK", "SDKWithManifest, Version=2.0", "References\\Retail\\X86\\A.winmd", "References\\CommonConfiguration\\Neutral\\A.dll");
1144
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.ConflictReferenceSameSDK", "SDKWithManifest, Version=2.0", "References\\Retail\\X86\\A.winmd", "References\\CommonConfiguration\\Neutral\\A.winmd");
1171
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.ConflictRedistSameSDK", "A.dll", "SDKWithManifest, Version=2.0", "Redist\\Retail\\X86\\A.dll", "Redist\\CommonConfiguration\\Neutral\\A.dll");
1199
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.ConflictRedistSameSDK", "A.dll", "SDKWithManifest, Version=2.0", "Redist\\Retail\\X86\\A.dll", "Redist\\CommonConfiguration\\Neutral\\A.dll");
1243
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.ConflictRedistDifferentSDK", "B.PRI", "SDKWithManifest, Version=2.0", "AnotherSDK, Version=2.0", redistWinner, redistVictim);
1244
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.ConflictReferenceDifferentSDK", "SDKWithManifest, Version=2.0", "AnotherSDK, Version=2.0", referenceWinner, referenceVictim);
1287
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.ConflictRedistDifferentSDK", "ASUBDIRECTORY\\TWODEEP\\B.DLL", "SDKWithManifest, Version=2.0", "AnotherSDK, Version=2.0", redistWinner, redistVictim);
1332
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.ConflictRedistDifferentSDK", "B.PRI", "SDKWithManifest, Version=2.0", "AnotherSDK, Version=2.0", redistWinner, redistVictim);
1333
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "GetSDKReferenceFiles.ConflictReferenceDifferentSDK", "SDKWithManifest, Version=2.0", "AnotherSDK, Version=2.0", referenceWinner, referenceVictim);
ResolveSDKReference_Tests.cs (24)
243
engine3.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.MaxPlatformVersionNotSpecified", "project.proj", "GoodTestSDK", "2.0", "windows", "8.0", "windows", t3.TargetPlatformVersion);
450
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.NoFrameworkIdentitiesFound");
1095
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.NoFrameworkIdentitiesFound");
1133
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.NoFrameworkIdentitiesFound");
1174
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.NoFrameworkIdentitiesFound");
1212
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.NoFrameworkIdentitiesFound");
1251
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.NoFrameworkIdentitiesFound");
1285
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.NoFrameworkIdentitiesFound");
1317
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.NoSDKLocationsSpecified");
1356
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.NoFrameworkIdentitiesFound");
1393
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.CouldNotResolveSDK", "GoodTestSDK, Version=2.0");
1394
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.CouldNotResolveSDK", "GoodTestSDK2, Version=2.0");
1423
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.NoFrameworkIdentitiesFound");
1425
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.FoundSDK", _sdkPath);
1426
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.CouldNotResolveSDK", "RandomSDK, Version=2.0");
1678
engine1.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.MaxPlatformVersionLessThanTargetPlatformVersion", "myproject.csproj", "GoodTestSDK", "2.0", "Windows", "6.0", "Windows", "7.0");
2865
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.CannotReferenceTwoSDKsSameFamily", "GoodTestSDK, Version=1.0", "\"GoodTestSDK, Version=2.0\", \"GoodTestSDK, Version=3.0\"", "MyFamily");
2866
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.CannotReferenceTwoSDKsSameFamily", "GoodTestSDK, Version=2.0", "\"GoodTestSDK, Version=1.0\", \"GoodTestSDK, Version=3.0\"", "MyFamily");
2963
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.CannotReferenceTwoSDKsSameFamily", "GoodTestSDK, Version=1.0", "\"GoodTestSDK2, Version=2.0\", \"GoodTestSDK3, Version=3.0\"", "MyFamily");
2964
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.CannotReferenceTwoSDKsSameFamily", "GoodTestSDK2, Version=2.0", "\"GoodTestSDK, Version=1.0\", \"GoodTestSDK3, Version=3.0\"", "MyFamily");
3075
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.CannotReferenceTwoSDKsSameFamily", "GoodTestSDK, Version=1.0", "\"GoodTestSDK2, Version=2.0\"", "MyFamily");
3076
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.CannotReferenceTwoSDKsSameName", "GoodTestSDK3, Version=3.0", "\"GoodTestSDK3, Version=4.0\"");
3174
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.CannotReferenceTwoSDKsSameName", "GoodTestSDK, Version=1.0", "\"GoodTestSDK, Version=2.0\", \"GoodTestSDK, Version=3.0\"");
3175
engine.
AssertLogContainsMessageFromResource
(_resourceDelegate, "ResolveSDKReference.CannotReferenceTwoSDKsSameName", "GoodTestSDK, Version=2.0", "\"GoodTestSDK, Version=1.0\", \"GoodTestSDK, Version=3.0\"");
WriteLinesToFile_Tests.cs (1)
176
engine.
AssertLogContainsMessageFromResource
(AssemblyResources.GetString, "WriteLinesToFile.UnusedWriteOnlyWhenDifferent", file);