Exemplo n.º 1
0
        public void Has3OfSpades_Using3OfSpades_ReturnsTrue()
        {
            var         sut   = new RuleHandler();
            List <Card> cards = new List <Card>
            {
                new Card("3", 0, "Spades", 0)
            };

            bool result = sut.Has3OfSpades(cards);

            Assert.IsTrue(result);
        }
Exemplo n.º 2
0
        public void Has3OfSpades_UsingInvalidPlay_ReturnsFalse()
        {
            var         sut   = new RuleHandler();
            List <Card> cards = new List <Card>
            {
                new Card("3", 0, "Diamonds", 2)
            };

            bool result = sut.Has3OfSpades(cards);

            Assert.IsFalse(result);
        }