Esempio n. 1
0
        public void CardConstructorCorrectlyStoresCardType()
        {
            someType = DeckType.Chance;

            card = new Card(someName, someTask, someType);

            Assert.AreEqual(someType, card.Type);
        }
Esempio n. 2
0
        private IEnumerable<ICard> CreateCards()
        {
            var goToJailCard = new Card(new GoDirectlyToJailCommand(jailRoster, board));
            var collectMoneyCard = new Card(new CollectMoneyCommand(banker, 50));
            var cards = new[] { goToJailCard, collectMoneyCard };

            return cards;
        }
Esempio n. 3
0
        public void CardConstructorCorrectlyStoresTask()
        {
            card = new Card(someName, someTask, someType);

            Assert.AreSame(someTask, card.Tasks[0]);
        }