コード例 #1
0
ファイル: Game.cs プロジェクト: scottmuc/KnittingClub.Net
 public Game(BuyIn buyIn)
 {
     this.buyIn = buyIn;
     players = new List<Player>();
     payouts = new List<Payout>();
     playersKnockedOut = new List<GameResult>();
 }
コード例 #2
0
        public void When_a_game_is_asked_for_its_payout_structure_it_delegates_it_to_the_Payout_object_that_was_injected()
        {
            var payoutStructure = new BuyIn();

            var game = new Game(payoutStructure);

            Assert.Equal(payoutStructure, game.BuyIn);
        }
コード例 #3
0
        public void BuyInAmount_ConstructedWith_ShouldStoreAmount()
        {
            const int testBuyInAmont = 20;
            BuyIn sut = new BuyIn(testBuyInAmont);

            int result = sut.BuyInAmount;

            Assert.Equal(testBuyInAmont, result);
        }