Example #1
0
        public void ExpectVictoryPointAlwasyToBePlayable()
        {
            var turn = new Mock<ITurn>();
            var card = new DevelopmentCard(DevelopmentCardType.VictoryPoint, turn.Object);

            Assert.True(card.Playable);
        }
Example #2
0
        public void ExpectCardNotToBePlayableIfTurnNotEnded(DevelopmentCardType type)
        {
            var turn = new Mock<ITurn>();
            var card = new DevelopmentCard(type, turn.Object);

            Assert.False(card.Playable);
        }
Example #3
0
        public void ExpectCardToBePlayableAfterTurnEnded(DevelopmentCardType type)
        {
            var turn = new Mock<ITurn>();
            var card = new DevelopmentCard(type, turn.Object);
            turn.Raise(t => t.Ended += null, EventArgs.Empty);

            Assert.True(card.Playable);
        }