Example #1
0
        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枚目");
        }
Example #2
0
        public void SixthCardTest()
        {
            var communityCard = new CommunityCard();

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

            communityCard.AddSixth(ItemCard.newCotton());
            Assert.AreEqual(ItemCard.newCotton(), communityCard.Sixth, "2枚目");
        }
Example #3
0
        public void FirstCardTest()
        {
            var communityCard = new CommunityCard();

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

            communityCard.AddFirst(ItemCard.newCotton());
            Assert.AreEqual(ItemCard.newCotton(), communityCard.First, "2枚目");
        }
Example #4
0
 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());
 }