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)); }
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)); }