public void FormatAnimeSearchResponseToXmlString() { var formatter = new GenericXmlFormatter<AnimeSearchResponse>(); AnimeSearchResponse animeSearchResponse = new SearchResponseDeserializer<AnimeSearchResponse>().Deserialize(RESPONSE_TEXT); string xmlText = formatter.Format(animeSearchResponse); _output.WriteLine(xmlText); Assert.True(IsParsableXml(xmlText)); }
public void FormatMangaSearchResponseToXmlString() { var formatter = new GenericXmlFormatter <MangaSearchResponse>(); MangaSearchResponse response = new SearchResponseDeserializer <MangaSearchResponse>().Deserialize(RESPONSE_TEXT); string xmlText = formatter.Format(response); _output.WriteLine(xmlText); Assert.True(IsParsableXml(xmlText)); }