Exemple #1
0
        public void Deck_is_shuffled_on_game_start()
        {
            var deckMock = new Mock<DrawDeck>();

            var game = new Game(deckMock.Object, null, new GameImmediatelyOverEndCondition());
            game.Start();

            deckMock.Verify(x => x.Shuffle());
        }
Exemple #2
0
        public void Players_draw_six_and_discard_down_to_four_on_game_start()
        {
            var inputMock = new Mock<GameInput>();

            var game = new Game(DrawDeck.CreateWithCards(20), inputMock.Object, null);
            game.AddPlayer(new Player { Name = "Paul"});
            game.AddPlayer(new Player { Name = "Tristan"});

            game.Start();

            Assert.Fail();
        }