示例#1
0
        public void CannotNormalSummonTwiceInSameMainPhase()
        {
            Assert.AreEqual(0, Kaiba.Field.GetMonsters().Count);
            Assert.AreEqual(CardLocation.Hand, BattleOx.Location);
            Assert.AreEqual(CardLocation.Hand, TwinHeadedBehemoth.Location);

            var phase   = new MainPhase1(Game);
            var success = phase.NormalSummonWithoutTribute(BattleOx);

            // Fist summon should go through
            Assert.True(success);
            Assert.AreEqual(1, Kaiba.Field.GetMonsters().Count);
            Assert.AreEqual(CardLocation.MonsterZone, BattleOx.Location);
            Assert.AreEqual(CardLocation.Hand, TwinHeadedBehemoth.Location);

            success = phase.NormalSummonWithoutTribute(TwinHeadedBehemoth);
            Assert.False(success);
            Assert.AreEqual(1, Kaiba.Field.GetMonsters().Count);
            Assert.AreEqual(CardLocation.MonsterZone, BattleOx.Location);
            Assert.AreEqual(CardLocation.Hand, TwinHeadedBehemoth.Location);
        }
示例#2
0
        public void AmazonessVillageShouldBoostAmazonessMonsters()
        {
            var village     = (Spell)Mai.Deck.AddCardToHand(Mai.Hand, "Amazoness Village");
            var swordsWoman = (Monster)Mai.Deck.AddCardToHand(Mai.Hand, "Amazoness Swords Woman");

            Game.TurnPlayer = Mai;

            var m1 = new MainPhase1(Game);

            m1.ActivateSpell(village);
            m1.NormalSummonWithoutTribute(swordsWoman);

            Assert.IsTrue(Mai.Field.FieldZone.FieldSpell == village, "Mai should have Amazoness Village active in the field spell zone.");
            Assert.AreEqual(1, Game.FieldBuffs.Count, "Mai should have 1 field buff");
            Assert.AreEqual(CardLocation.MonsterZone, swordsWoman.Location, "Swordswoman should be in a monster zone.");
            Assert.AreEqual(CardPosition.FaceUpAttack, swordsWoman.Position, "Swordswoman should be in face-up attack position.");
            Assert.AreEqual(1700, swordsWoman.ATK, "Swordswoman should have 1700 ATK");
        }