public void ShouldFailOnEmptyStack() { var rule = new DarkQueenSnapRule(); var stack = Cards.Empty(); Assert.That(rule.CanSnap(stack), Is.False); }
public void ShouldFailWithNoQueenOfSpades() { var rule = new DarkQueenSnapRule(); var stack = new Cards(new List <Card> { new Card(Suit.Clubs, Rank.Ace), }); Assert.That(rule.CanSnap(stack), Is.False); }
public void ShouldPassWithQueenAtTop() { var rule = new DarkQueenSnapRule(); var stack = new Cards(new List <Card> { new Card(Suit.Spades, Rank.Queen), new Card(Suit.Clubs, Rank.Ace) }); Assert.That(rule.CanSnap(stack), Is.True); }