public void SecondCardTest() { var communityCard = new CommunityCard(); communityCard.AddSecond(ItemCard.newCopper()); ItemCard card = communityCard.Second; Assert.AreEqual(ItemCard.newCopper(), card, "1枚目"); communityCard.AddSecond(ItemCard.newCotton()); Assert.AreEqual(ItemCard.newCotton(), communityCard.Second, "2枚目"); }
public void Setup() { this._deck = new Deck(); this._tokenPool = new TokenPool(); this._specialCardPool = new SpecialCardPool(); this._specialCardPool.Setup(_tokenPool); this._communityCards = new CommunityCard(); _communityCards.AddFirst(_deck.Draw()); _communityCards.AddSecond(_deck.Draw()); _communityCards.AddThird(_deck.Draw()); _communityCards.AddFourth(_deck.Draw()); _communityCards.AddFifth(_deck.Draw()); _communityCards.AddSixth(_deck.Draw()); }