public void ShouldFailWithNoKeyAndValue() { Action act = () => NuspecPropertyStringProvider.GetNuspecPropertyDictionary(new[] { " = " }); act.Should().Throw <InvalidDataException>(); }
public void ShouldReturnNullOnNullInput() { NuspecPropertyStringProvider.GetNuspecPropertyDictionary(null).Should().BeNull(); }
private static void AssertPropertyStringsParseToDictionary(string[] propertyStrings, Dictionary <string, string> expectedDictionary) { NuspecPropertyStringProvider.GetNuspecPropertyDictionary(propertyStrings).Should().BeEquivalentTo(expectedDictionary); }
private static void AssertPropertyStringsParseToDictionary(string[] propertyStrings, Dictionary <string, string> expectedDictionary) { Assert.Equal(expectedDictionary, NuspecPropertyStringProvider.GetNuspecPropertyDictionary(propertyStrings)); }
public void ShouldFailWithNoKeyAndValue() { Assert.Throws <InvalidDataException>(() => NuspecPropertyStringProvider.GetNuspecPropertyDictionary(new[] { " = " })); }
public void ShouldReturnNullOnNullInput() { Assert.Null(NuspecPropertyStringProvider.GetNuspecPropertyDictionary(null)); }