コード例 #1
0
        public void FifthCardTest()
        {
            var communityCard = new CommunityCard();

            communityCard.AddFifth(ItemCard.newCopper());
            ItemCard card = communityCard.Fifth;
            Assert.AreEqual(ItemCard.newCopper(), card, "1枚目");

            communityCard.AddFifth(ItemCard.newCotton());
            Assert.AreEqual(ItemCard.newCotton(), communityCard.Fifth, "2枚目");
        }
コード例 #2
0
ファイル: Game.cs プロジェクト: unidayo/Merchants
 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());
 }