예제 #1
0
파일: HandTest.cs 프로젝트: postcn/Dominion
 public void testContains()
 {
     Hand test = new Hand();
     Card estate = new Card(0, 0, 0, 0, 1, 0, 0, "Estate", "1 Victory Point", 2, "Estate");
     Card copper = new Card(1, 1, 0, 0, 0, 0, 0, "Copper", "1 Currency", 0, "Copper");
     Card other = new Card(0, 0, 0, 0, 0, 0, 0, "NULL", "NULL", 0, "Null");
     List<Card> smallDeck = new List<Card>();
     smallDeck.Add(estate);
     smallDeck.Add(copper);
     Deck toDraw = new Deck(smallDeck);
     Assert.IsFalse(test.contains(estate));
     test.draw(toDraw);
     Assert.IsTrue(test.contains(estate));
     Assert.IsFalse(test.contains(copper));
     test.draw(toDraw);
     Assert.IsTrue(test.contains(copper));
     Assert.IsFalse(test.contains(other));
 }