Esempio n. 1
0
 public void IsWinningBetWithNoWinningValue()
 {
     RouletteGame.Bet bet = new RouletteGame.Bet()
     {
         WinningNumbers = new byte[] { 2 },
         Payout         = 35,
         BetAmount      = 100
     };
     Assert.AreEqual(false, RouletteGame.Game.IsWinningBet(bet, 1));
 }
Esempio n. 2
0
 public void PlaceBet(Bet bet)
 {
     if (_roundIsOpen) _bets.Add(bet);
     else throw new RouletteGameException("Bet placed while round closed");
 }