Exemple #1
0
        public void ShouldFailOnEmptyStack()
        {
            var rule  = new DarkQueenSnapRule();
            var stack = Cards.Empty();

            Assert.That(rule.CanSnap(stack), Is.False);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }