예제 #1
0
파일: HandTest.cs 프로젝트: postcn/Dominion
 public void testDiscard()
 {
     Hand test = new Hand();
     Deck d = new Deck();
     test.draw(d);
     Assert.AreEqual(1, test.getHand().Count);
     test.discard(test.getHand()[0], d);
     Assert.AreEqual(0, test.getHand().Count);
     Assert.AreEqual(1, d.getInDiscard().Count);
     Assert.IsFalse(test.discard(new Card(0, 0, 0, 0, 0, 0, 0, "Null", "Null", 0, "Null"), d));
     Assert.AreEqual(1, d.getInDiscard().Count);
 }