Exemplo n.º 1
0
        public void SpaceMarineBoostDrop()
        {
            var tmpSpaceMarineMock = new Mock <IMonsterCard>();

            tmpSpaceMarineMock.Setup(card => card.MonsterType).Returns(MonsterType.SpaceMarine);
            var spaceMarineMock = tmpSpaceMarineMock.As <ICard>();

            spaceMarineMock.SetupProperty(card => card.Damage);
            spaceMarineMock.SetupProperty(card => card.Log, log);
            var spaceMarine = spaceMarineMock.Object;
            var boostEffect = new Boost();

            boostEffect.Apply(spaceMarine);
            boostEffect.Drop(spaceMarine);
            var result = spaceMarine.Damage;

            Assert.AreEqual(0, result);
        }