コード例 #1
0
 public void BuyInToGame_WithInvalidAmount_DoesNotAddPlayerToGame()
 {
     Game game = new Game(minmiumBuyIn: 100M, maximumBuyIn: 200M);
     PokerPlayer player = new PokerPlayer("RobA2345");
     player.BuyInToGame(game, 1, 250M);
     player.BuyInToGame(game, 1, 90M);
     Assert.AreEqual(0, game.PlayerCount);
 }
コード例 #2
0
 public void BuyInToGame_WithValidAmount_AddsPlayerToGame()
 {
     Game game = new Game(minmiumBuyIn: 100M, maximumBuyIn: 200M);
     PokerPlayer player = new PokerPlayer("RobA2345");
     player.BuyInToGame(game, 1, 150M);
     Assert.AreEqual(1, game.PlayerCount);
 }