public void PokeRepository_GetPokedex_PassingNullStringReturnsKantoPokedex() { var pokeRepo = new PokeRepository(Client); PokedexResponse target = pokeRepo.GetPokedex(""); Assert.True(target.Name == "kanto"); }
public void PokeRepository_GetPokedexCount_ReturnsTypeInt() { var pokeRepo = new PokeRepository(Client); int target = pokeRepo.GetPokedexCount(); Assert.IsType <int>(target); }
public void PokeRepository_GetPokedex_PassingValidStringReturnsCorrectPokedexResponse(string region) { var pokeRepo = new PokeRepository(Client); PokedexResponse target = pokeRepo.GetPokedex(region); Assert.True(target.Name == region); }
public void PokeRepository_GetPokemon_PassingStringReturnsPokemonSpeciesListObject() { var pokeRepo = new PokeRepository(Client); List <PokemonSpecies> target = pokeRepo.GetPokemon("string"); Assert.IsType <List <PokemonSpecies> >(target); }
public void PokeRepository_GetPokedexNames_ReturnsListOfStrings() { var pokeRepo = new PokeRepository(Client); List <string> target = pokeRepo.GetPokedexNames(); Assert.IsType <List <string> >(target); Assert.NotNull(target); }
public void PokeRepository_GetPokemon_PassingValidStringReturnsListWithCountGreaterThanZero(string name) { var pokeRepo = new PokeRepository(Client); List <PokemonSpecies> target = pokeRepo.GetPokemon(name); bool expected = target.Count > 0; Assert.True(expected); Assert.NotNull(target); }
public PokedexNameGenerator() { var pokeRepo = new PokeRepository(_client); List <string> names = pokeRepo.GetPokedexNames(); foreach (string name in names) { Add(name); } }
// Contructor de la clase, crea el repositorio de pokemones public PokemonManager() { PokeRepository = new PokeRepository(); }