Ejemplo n.º 1
0
        public void PokemonShouldFaint()
        {
            IPokemon pokemon = PokemonFactory.CreatePokemon <Pikachu>();

            pokemon?.ReceiveDamage((int)pokemon?.TotalHealthPoints);
            Assert.True(pokemon?.HasFainted());
        }
 public static bool CanUsePotionOnPokemon(IPokemon pokemon)
 => pokemon.CurrentHealthPoints < pokemon.TotalHealthPoints && !pokemon.HasFainted();