1 write to TargetAppConfigContent
Microsoft.Build.Tasks.UnitTests (1)
GenerateBindingRedirects_Tests.cs (1)
336
TargetAppConfigContent
= File.ReadAllText(outputAppConfig),
13 references to TargetAppConfigContent
Microsoft.Build.Tasks.UnitTests (13)
GenerateBindingRedirects_Tests.cs (13)
56
redirectResults.
TargetAppConfigContent
.ShouldContain("<assemblyIdentity name=\"System\" publicKeyToken=\"b77a5c561934e089\" culture=\"neutral\" />");
57
redirectResults.
TargetAppConfigContent
.ShouldContain("newVersion=\"40.0.0.0\"");
89
redirectResults.
TargetAppConfigContent
.ShouldContain("MyAssembly");
90
redirectResults.
TargetAppConfigContent
.ShouldContain("<bindingRedirect oldVersion=\"0.0.0.0-40.0.0.0\" newVersion=\"40.0.0.0\"");
135
redirectResults.
TargetAppConfigContent
.ShouldContain($"oldVersion=\"0.0.0.0-{serviceBusRedirect.MaxVersion}\"");
136
redirectResults.
TargetAppConfigContent
.ShouldContain($"newVersion=\"{serviceBusRedirect.MaxVersion}\"");
138
redirectResults.
TargetAppConfigContent
.ShouldContain($"oldVersion=\"0.0.0.0-{webHttpRedirect.MaxVersion}\"");
139
redirectResults.
TargetAppConfigContent
.ShouldContain($"newVersion=\"{webHttpRedirect.MaxVersion}\"");
141
XElement targetAppConfig = XElement.Parse(redirectResults.
TargetAppConfigContent
);
289
redirectResults.
TargetAppConfigContent
.ShouldContain("<assemblyIdentity name=\"System\" publicKeyToken=\"b77a5c561934e089\" culture=\"neutral\" />");
290
redirectResults.
TargetAppConfigContent
.ShouldContain("newVersion=\"40.0.0.0\"");
306
redirectResults2.
TargetAppConfigContent
.ShouldContain("<assemblyIdentity name=\"System\" publicKeyToken=\"b77a5c561934e089\" culture=\"neutral\" />");
307
redirectResults2.
TargetAppConfigContent
.ShouldContain("newVersion=\"40.0.0.0\"");