Exemple #1
0
        public void WhenTurnEnd()
        {
            WhenInHand();
            GameResult <GameContextOutput> res = proxy.TurnEnd(gameContext.GameCode, gameContext.GetActivationUserContext().UserCode, shortCodeService) as GameResult <GameContextOutput>;

            Xunit.Assert.True(res.code == (int)OperateResCodeEnum.成功);
            SI7Agent si7Agent = gameContext.Players.First(c => c.IsActivation == false).HandCards.First(c => c.GetType() == typeof(SI7Agent)) as SI7Agent;
            DynamicCastCrosshairStyleComboDriver <NullAbility, RiseDamage <SecondaryFilter, Two, ONE, PhysicalDamage>, NullFilter> driver =
                si7Agent.CardAbility as DynamicCastCrosshairStyleComboDriver <NullAbility, RiseDamage <SecondaryFilter, Two, ONE, PhysicalDamage>, NullFilter>;

            Xunit.Assert.True(driver.CastCrosshairStyle == CastCrosshairStyle.无);
        }
Exemple #2
0
        public void WhenInHand()
        {
            var      context     = gameContext;
            SI7Agent si7Agent    = SetTestedCardInHand <SI7Agent>();
            Card     eviscerate1 = context.GetActivationUserContext().AllCards.First(c => c.GetType() == typeof(Eviscerate));
            Card     eviscerate2 = context.GetActivationUserContext().AllCards.First(c => c.GetType() == typeof(Eviscerate) && c.CardInGameCode != eviscerate1.CardInGameCode);

            SetSomeCardInHand(eviscerate1, eviscerate2);
            GameResult <GameContextOutput> res = proxy.CastSpell(gameContext.GameCode, gameContext.GetActivationUserContext().UserCode, eviscerate1.CardInGameCode, 8) as GameResult <GameContextOutput>;

            Xunit.Assert.True(res.code == (int)OperateResCodeEnum.成功);
            DynamicCastCrosshairStyleComboDriver <NullAbility, RiseDamage <SecondaryFilter, Two, ONE, PhysicalDamage>, NullFilter> driver =
                si7Agent.CardAbility as DynamicCastCrosshairStyleComboDriver <NullAbility, RiseDamage <SecondaryFilter, Two, ONE, PhysicalDamage>, NullFilter>;

            Xunit.Assert.True(driver.CastCrosshairStyle == CastCrosshairStyle.单个);
        }