public async Task GetFormattedAPIUrl_Url_IsAPIUrlValid() { LoLMetadataViewModel metadata = await LoLAPIUtil.FetchAPIMetadataAsync(); // Test with "champion" as datatype but any other datatype would be same string formattedAPIUrl = LoLAPIUtil.GetFormattedAPIUrl(metadata.BaseUrlAPI, metadata.Version, "champion"); using HttpClient client = new HttpClient(); var response = await client.GetAsync(formattedAPIUrl); Assert.True(response.IsSuccessStatusCode); Assert.True(response.Content.Headers.ContentType.MediaType == "application/json"); }