示例#1
0
        public void WhenStartingNewGame_ThenDoNotAllowZeroRounds()
        {
            var game = new GameFixture().CreateGame();
            var guessMaxAnonymous = 1;
            var rounds            = 0;

            Assert.Throws <ArgumentException>(() => game.Start(rounds, guessMaxAnonymous, new List <int>()));
        }
示例#2
0
        public void WhenStartingNewGame_ThenShouldAcceptNoOfRounds()
        {
            var expectedRounds    = 5;
            var guessMaxAnonymous = 10;
            var game = new GameFixture().CreateGame();

            game.Start(expectedRounds, guessMaxAnonymous, new List <int>());

            Assert.Equal(expectedRounds, game.TotalRounds);
        }