public void ToUri_WhenOneArgument_ReturnsCommandUriWithOneQueryParameter() { var command = new GallioNavigatorCommand("command", new NameValueCollection() { { "arg/1", "value?1" } }); Assert.AreEqual("gallio:command?arg%2F1=value%3F1", command.ToUri()); }
public void ToUri_WhenTwoArguments_ReturnsCommandUriWithTwoQueryParameters() { var command = new GallioNavigatorCommand("command", new NameValueCollection() { { "arg/1", "value?1" }, { "arg/2", "value?2" } }); Assert.AreEqual("gallio:command?arg%2F1=value%3F1&arg%2F2=value%3F2", command.ToUri()); }
public void ToUri_WhenNoArguments_ReturnsCommandUriWithNoQueryParameters() { var command = new GallioNavigatorCommand("command", new NameValueCollection()); Assert.AreEqual("gallio:command", command.ToUri()); }