public static void Test(string value, string uri, string expectedValue) { var dummyGrammar = new DummyGrammar(value); var request = new HttpRequestMessage(HttpMethod.Get, new Uri( uri, UriKind.Relative)); dummyGrammar.Compose(null, request); Assert.IsTrue(request.RequestUri.ToString().EndsWith(expectedValue), request.RequestUri.ToString()); }
public static void Test(string value, string uri, string expectedValue) { var dummyGrammar = new DummyGrammar(value); var request = new HttpRequestMessage(HttpMethod.Get, new Uri(uri, UriKind.Relative)); dummyGrammar.Compose(null, request); Assert.IsTrue(request.RequestUri.ToString().EndsWith(expectedValue), request.RequestUri.ToString()); }