示例#1
0
        public async void SearchDeserializedAsyncResponseHasNoEntry(string searchTerm)
        {
            AnimeSearchResponse response = await _sut.SearchDeserializedAsync(searchTerm);

            _output.WriteLine($"response.Entries.Count = {response.Entries.Count}");
            Assert.True(response.Entries.Count == 0);
        }
        public void ValidAnimeResponseStringIsDeserializedAsAnimeSearchResponseObjectInstance(string responseString)
        {
            var sut = _animeSearchResponseDeserializerFixture.Deserializer;

            AnimeSearchResponse response = sut.Deserialize(responseString);

            Assert.IsType <AnimeSearchResponse>(response);
        }
 public static string ToJson(this AnimeSearchResponse response)
 {
     return(new JsonFormatter <AnimeSearchResponse>().Format(response));
 }
 public static string ToXml(this AnimeSearchResponse response)
 {
     return(new GenericXmlFormatter <AnimeSearchResponse>().Format(response));
 }