Пример #1
0
        public void Setup()
        {
            var game = new Game();

            game.Setup();

            Assert.AreEqual(2, game.PoolOfficeCount);
            Assert.AreEqual(2, game.PoolDockerCount);
            Assert.AreEqual(2, game.PoolTradeAgreementCount);
            Assert.AreEqual(14, game.PoolShipCount);

            ItemCard card1 = game.CommunityCardFirst;
            Assert.IsNotNull(card1);

            ItemCard card2 = game.CommunityCardSecond;
            Assert.IsNotNull(card2);

            ItemCard card3 = game.CommunityCardThird;
            Assert.IsNotNull(card3);

            ItemCard card4 = game.CommunityCardFourth;
            Assert.IsNotNull(card4);

            ItemCard card5 = game.CommunityCardFifth;
            Assert.IsNotNull(card5);

            ItemCard card6 = game.CommunityCardSixth;
            Assert.IsNotNull(card6);
        }
Пример #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this._game = new Game();
            _game.Setup();

            LblCommunityCard1.Text = getItemName(_game.CommunityCardFirst);
            LblCommunityCard2.Text = getItemName(_game.CommunityCardSecond);
            LblCommunityCard3.Text = getItemName(_game.CommunityCardThird);
            LblCommunityCard4.Text = getItemName(_game.CommunityCardFourth);
            LblCommunityCard5.Text = getItemName(_game.CommunityCardFifth );
            LblCommunityCard6.Text = getItemName(_game.CommunityCardSixth);

        }