7 references to NuspecPropertyStringProvider
Microsoft.DotNet.Build.Tasks.Packaging (1)
NuGetPack.cs (1)
191
return nuspecProperties == null ? null :
NuspecPropertyStringProvider
.GetNuspecPropertyProviderFunction(nuspecProperties.Select(p => p.ItemSpec).ToArray());
Microsoft.DotNet.Build.Tasks.Packaging.Tests (6)
NugetPropertyStringProviderTests.cs (6)
48
NuspecPropertyStringProvider
.GetNuspecPropertyDictionary(null).Should().BeNull();
61
Action act = () =>
NuspecPropertyStringProvider
.GetNuspecPropertyDictionary(new[] { "abc" });
68
Action act = () =>
NuspecPropertyStringProvider
.GetNuspecPropertyDictionary(new[] { "a= " });
75
Action act = () =>
NuspecPropertyStringProvider
.GetNuspecPropertyDictionary(new[] { " = b" });
82
Action act = () =>
NuspecPropertyStringProvider
.GetNuspecPropertyDictionary(new[] { " = " });
88
NuspecPropertyStringProvider
.GetNuspecPropertyDictionary(propertyStrings).Should().BeEquivalentTo(expectedDictionary);