Beispiel #1
0
        internal void TwoCardsEqualOperator(CardSuiteEnum suite1, CardValueEnum value1, CardSuiteEnum suite2, CardValueEnum value2)
        {
            var newCard1 = new Card(suite1, value1);
            var newCard2 = new Card(suite2, value2);

            Assert.True(newCard1 == newCard2);
        }
Beispiel #2
0
        internal void TwoCardsAreEqual(CardSuiteEnum suite1, CardValueEnum value1, CardSuiteEnum suite2, CardValueEnum value2)
        {
            var newCard1 = new Card(suite1, value1);
            var newCard2 = new Card(suite2, value2);

            Assert.True(newCard1.Equals(newCard2));
        }
Beispiel #3
0
        internal void TwoCardsValuesAndSuitesAreNotEqual(CardSuiteEnum suite1, CardValueEnum value1, CardSuiteEnum suite2, CardValueEnum value2)
        {
            var newCard1 = new Card(suite1, value1);
            var newCard2 = new Card(suite2, value2);

            Assert.False(newCard1.Equals(newCard2));
        }
Beispiel #4
0
 public Card(CardSuiteEnum suite, CardValueEnum value)
 {
     Type  = suite;
     Value = value;
 }