public void ThirdCardTest() { var communityCard = new CommunityCard(); communityCard.AddThird(ItemCard.newCopper()); ItemCard card = communityCard.Third; Assert.AreEqual(ItemCard.newCopper(), card, "1枚目"); communityCard.AddThird(ItemCard.newCotton()); Assert.AreEqual(ItemCard.newCotton(), communityCard.Third, "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()); }