Beispiel #1
0
 private void TestCardValue(Card card, string expectedPrefix)
 {
     Assert.IsTrue(card.Name().StartsWith(expectedPrefix));
 }
Beispiel #2
0
 public void IfCardSuiteIsNotDefined_Should_Throw_ArgumentException()
 {
     var card = new Card();
     var result = card.Name();
 }
Beispiel #3
0
 private void TestCardSuit(Card card, string expectedSuffix)
 {
     Assert.IsTrue(card.Name().EndsWith(expectedSuffix));
 }
Beispiel #4
0
 public void CardValueLessThen1_Name_Should_Throw_ArgumentException()
 {
     var card = new Card() { Suite = Card.Suites.Spades, Value = 0 };
     var result = card.Name();
 }