Esempio n. 1
0
        public void NewDamageNotClearedFirstTime()
        {
            var attack = new Attack()
            {
                Damage = 20
            };

            attack.DamageModifier = new DamageModifier(40, 3);

            var pokemon = new PokemonCard()
            {
                Attacks = new ObservableCollection <Attack>
                {
                    attack
                }
            };

            pokemon.EndTurn(new GameField()); //Turn ended By Attack
            pokemon.EndTurn(new GameField()); //Turn ended by opponent

            Assert.Equal(40, attack.Damage);
        }