public void SonarQubeServiceWrapper_AppendQuery_MultipleQueryParameters_ReturnsCorrectQueryString() { // Act var result = SonarQubeServiceWrapper.AppendQueryString( urlBase: "api/foobar", queryFormat: "?a={0}&b={2}&c={1}", args: new[] { "1", "3", "2" }); // Verify Assert.AreEqual("api/foobar?a=1&b=2&c=3", result); }
public void SonarQubeServiceWrapper_AppendQuery_NoQueryParameters_ReturnsBaseUrl() { // Act + Verify Assert.AreEqual("api/foobar", SonarQubeServiceWrapper.AppendQueryString("api/foobar", "")); }