protected override void When() { _parameters = StringParametersParser.Parse("Key1=Value1|Key2=Value2"); }
protected override void When() { _parameters = StringParametersParser.Parse("Key="); }
public void Parse_ForDuplicateKeys_ShouldThrowParseException() { Assert.Throws <FormatException>(() => StringParametersParser.Parse("Key1=ValueA|Key1=ValueB")); }
public void Parse_ForEmptyPairs_ShouldNotThrowException() { Assert.DoesNotThrow(() => StringParametersParser.Parse("|Key=Value||")); }
public void Parse_ForEmptyString_ShouldNotThrowException() { Assert.DoesNotThrow(() => StringParametersParser.Parse(String.Empty)); }
public void Parse_ForNullString_ShouldThrowArgumentNullException() { Assert.Throws <ArgumentNullException>(() => StringParametersParser.Parse(null)); }