Exemple #1
0
        public void Contains_CardIdInSet_ReturnTrue()
        {
            var       cardsSetA = new CardsSet(new byte[] { 1, 7, 20 });
            const int cardId    = 7;

            Assert.True(cardsSetA.Contains(cardId));
        }
Exemple #2
0
        public void Contains_CardIdOutOfSet_ReturnFalse()
        {
            var       cardsSetA = new CardsSet(new byte[] { 2, 8, 16 });
            const int cardId    = 7;

            Assert.False(cardsSetA.Contains(cardId));
        }
Exemple #3
0
        public void Contains_CardOutOfSet_ReturnFalse()
        {
            var cardsSetA = new CardsSet(new byte[] { 2, 8, 16 });
            var card      = new Card(7);

            Assert.False(cardsSetA.Contains(card));
        }
Exemple #4
0
        public void Contains_CardInSet_ReturnTrue()
        {
            var cardsSetA = new CardsSet(new byte[] { 1, 7, 20 });
            var card      = new Card(7);

            Assert.True(cardsSetA.Contains(card));
        }