Exemple #1
0
        public void ShouldDealMoreThanFiftyDamagePoints()
        {
            IPokemon attackingPokemon = PokemonFactory.CreatePokemon <Venusaur>();
            IPokemon targetPokemon    = PokemonFactory.CreatePokemon <Golem>();

            TypeEffect effectOfTypeOnTargetPokemon = TypeComparer.CompareGrassType(targetPokemon.Types[0]);

            int totalDamage = TypeDamageCalculator.CalculateDamage(
                attackingPokemon,
                targetPokemon,
                attackingPokemon.Moves[3],
                effectOfTypeOnTargetPokemon
                );

            Assert.True(totalDamage > 50);
        }