Ejemplo n.º 1
0
        public void Some_monster_abilities_are_not_usable_from_hand(Phase phase, CardOwner owner, bool expected)
        {
            // Arrange
            var ability = new Ability(Phase.Spoils, "test", player => { }) { Card = new Card(_game) { Type = CardType.Monster, Owner = owner } };

            // Act
            var isUsable = ability.IsUsableByOwner();

            // Assert
            Assert.That(isUsable, Is.EqualTo(expected));
        }
Ejemplo n.º 2
0
        public void Is_usable_when_owned_by_player(Phase phase, bool expected)
        {
            // Arrange
            var ability = new Ability(phase, "test", player => { }) {Card = new Card(_game) {Owner = CardOwner.Player}};

            // Act
            var isUsable = ability.IsUsableByOwner();

            // Assert
            Assert.That(isUsable, Is.EqualTo(expected));
        }