Exemple #1
0
 public void testGetCurrency()
 {
     Hand test = new Hand();
     Deck d = new Deck();//default with seven coppers in front.
     Assert.AreEqual(0, test.getCurrency());
     test.draw(d);
     Assert.AreEqual(1, test.getCurrency());
     for (int i = 0; i < 6; i++)
     {
         test.draw(d);
     }
     Assert.AreEqual(7, test.getCurrency());
     test.draw(d);
     Assert.AreEqual(7, test.getCurrency());
 }