public void Be2970WhenGiven_3Pikachu3Squirtle() { var pikachu = new Pikachu(); var squirtle = new Squirtle(); _cashRegister.BuyManyPokemon(pikachu, 3); _cashRegister.BuyManyPokemon(squirtle, 3); var result = _cashRegister.GetOrderTotal(); result.IsEqualToPenny(29.70); }
public void Be1590WhenGiven_2Pikachu1Squirtle() { var pikachu = new Pikachu(); var squirtle = new Squirtle(); _cashRegister.BuyManyPokemon(pikachu, 2); _cashRegister.BuyPokemon(squirtle); var result = _cashRegister.GetOrderTotal(); result.IsEqualToPenny(15.90); }
public void Be1880WhenGiven_2Pikachu1Squirtle1Charmander() { var pikachu = new Pikachu(); var squirtle = new Squirtle(); var charmander = new Charmander(); _cashRegister.BuyManyPokemon(pikachu, 2); _cashRegister.BuyPokemon(squirtle); _cashRegister.BuyPokemon(charmander); var result = _cashRegister.GetOrderTotal(); result.IsEqualToPenny(18.80); }
// for player from input , for enemy random public Pokemon ChooseStarterPokemon(int _choice) { PokemonType chosenPokemonType = Choose(/*PokemonType.NonValid,*/ PokemonType.Pikachu, PokemonType.Charmander, PokemonType.Bulbasaur, PokemonType.Squirtle, _choice); switch (chosenPokemonType) { case PokemonType.Bulbasaur: Bulbasaur newBulbasaur = new Bulbasaur(20, 100); return(newBulbasaur); case PokemonType.Charmander: Charmander newCharmender = new Charmander(20, 100); return(newCharmender); case PokemonType.Pikachu: Pikachu newPikachu = new Pikachu(20, 100); return(newPikachu); case PokemonType.Squirtle: default: Squirtle newSquirtle = new Squirtle(20, 100); return(newSquirtle); } }