示例#1
0
        public async Task TestValidPokemonNameReturnsResult()
        {
            BLL.Model.TranslatedResponse response = (await pokemonController.GetAsync("charizard")).Value;

            Assert.That(response.Description, Is.EqualTo("Charizard flies 'round the sky insearch of powerful opponents.'t breathes fire of such most wondrous heat yond 't melts aught. However,  itnever turns its fiery breath on anyopponent weaker than itself."));
        }
示例#2
0
        public async Task TestValidPokemonNameReturnsTranslatedData()
        {
            BLL.Model.TranslatedResponse response = await pokemonService.TranslateToShakespearStyleAsync("charizard");

            Assert.That(response.Description, Is.EqualTo("Charizard flies 'round the sky insearch of powerful opponents.'t breathes fire of such most wondrous heat yond 't melts aught. However,  itnever turns its fiery breath on anyopponent weaker than itself."));
        }