コード例 #1
0
 public void TestCardInstantiation()
 {
     var testCard = new Card(2, Card.Suits.Clubs);
     Assert.IsNotNull(testCard, "Card Instantiation Error", "testCard is null.");
     Assert.IsInstanceOfType(testCard, typeof(Card), "Card Instantiation Error", "Card is not really a card.");
     Console.WriteLine(testCard);
 }
コード例 #2
0
 public void TestCardValueUpperBound()
 {
     var testCard = new Card(15, Card.Suits.Clubs);
 }
コード例 #3
0
 public void TestCardValueLowerBound()
 {
     var testCard = new Card(1, Card.Suits.Clubs);
 }