예제 #1
0
 public void OpeBets_IsRoundOpen_True()
 {
     // Act
     _uut.OpenBets();
     // Assert
     Assert.That(_uut.RoundIsOpen, Is.True);
 }
예제 #2
0
        private static void Main()
        {
            var game = new RouletteGame(new Roulette(new Randomzier(), new FieldFactory()));

            game.OpenBets();
            game.PlaceBet(new ColorBet("Player 1", 100, Field.Black));
            game.PlaceBet(new ColorBet("Player 1", 100, Field.Red));

            game.PlaceBet(new EvenOddBet("Player 2", 100, true));
            game.PlaceBet(new EvenOddBet("Player 2", 100, false));

            for (uint i = 0; i < 36; i++)
            {
                game.PlaceBet(new FieldBet("Player 3", 100, i));
            }

            game.CloseBets();
            game.SpinRoulette();
            game.PayUp();
        }
예제 #3
0
        static void Main(string[] args)
        {
            var game = new RouletteGame(new Roulette(new StandardFieldFactory(), new MyRandom()));

            game.OpenBets();
            game.PlaceBet(new ColorBet("Player 1", 100, Field.Black));
            game.PlaceBet(new ColorBet("Player 1", 100, Field.Red));

            game.PlaceBet(new EvenOddBet("Player 2", 100, true));
            game.PlaceBet(new EvenOddBet("Player 2", 100, false));

            for (uint i = 0; i < 36; i++)
            {
                game.PlaceBet(new FieldBet("Player 3", 100, i));
            }

            game.CloseBets();
            game.SpinRoulette();
            game.PayUp();
            Console.ReadKey();
        }
 public void OpenBets_IsRoundOpen_True()
 {
     _uut.OpenBets();
     Assert.That(_uut.RoundIsOpen, Is.True);
 }