Exemple #1
0
        public void isWinReturnsFalseWhenContestantLose()
        {
            Monty game = new Monty(2);

            game.PickDoor(Array.IndexOf(game.Doors, game.Doors.Single(d => d.ContainsPrize == false)));
            Assert.False(game.IsWin());
        }
Exemple #2
0
        public void isWinReturnsTrueWhenContestantWins()
        {
            Monty game = new Monty(2);

            game.PickDoor(Array.IndexOf(game.Doors, game.Doors.Single(d => d.ContainsPrize == true)));
            Assert.True(game.IsWin());
        }