Beispiel #1
0
        public void Same_Card_Of_Different_Suits_Should_Be_Equal()
        {
            Card card1 = new Card(CardValue.Two, CardSuit.Clubs);
            Card card2 = new Card(CardValue.Two, CardSuit.Spades);

            Assert.AreEqual(0, card1.CompareTo(card2));
        }
Beispiel #2
0
        public void CardValueTest(CardValue value1, CardSuit suit1, CardValue value2, CardSuit suit2, int expected)
        {
            Card card1 = new Card(value1, suit1);
            Card card2 = new Card(value2, suit2);

            Assert.AreEqual(expected, card1.CompareTo(card2));
        }