public void TestMethod5() { Pokedex poke = new Pokedex(); PokemonReader pokemonReader = new PokemonReader(); poke = pokemonReader.LoadPokedex("pokemon151.xml"); Assert.IsNotNull(poke.GetPokemonsOfType("Fire")); }
public void PokeDex_Get_Type() { List <Pokemon> listPokemon = mPokedex.GetPokemonsOfType("Water"); foreach (var item in listPokemon) { Console.WriteLine(item.Name); } Assert.IsTrue(listPokemon.Count == 32); }
public void GetPokemonsofTypeTest() { Pokedex pokedex = new Pokedex(); PokemonReader reader = new PokemonReader(); pokedex = reader.Load("pokemon151.xml"); System.Collections.Generic.List <Pokemon> testlist = new System.Collections.Generic.List <Pokemon>(); testlist = pokedex.GetPokemonsOfType("Grass"); Assert.AreEqual(testlist.Count, 14); }