public async Task GetDiagnosticsUsesTheCorrectPath() { // Arrange var gallerySearchClient = new GallerySearchClient(ResilientClientForTest.GetTestInstance(HttpStatusCode.OK)); // Act var response = await gallerySearchClient.GetDiagnostics(); var httpResponseContentAsString = await response.HttpResponse.Content.ReadAsStringAsync(); var path = JObject.Parse(httpResponseContentAsString)["path"].Value <string>(); var queryString = JObject.Parse(httpResponseContentAsString)["queryString"].Value <string>(); var statusCode = response.StatusCode; // Assert Assert.Equal(200, (int)statusCode); Assert.True(response.IsSuccessStatusCode); Assert.Equal("search/diag", path); Assert.Null(queryString); }