コード例 #1
0
        public void ChipsGained_OneActionAdded_ReturnsChipsGainedByThatAction()
        {
            const double actionChipsGained = 1.0;
            var          actionStub        = new Mock <IAquiredPokerAction>();

            actionStub.SetupGet(get => get.ChipsGained).Returns(actionChipsGained);

            _aquiredRound.Add(actionStub.Object);

            Assert.That(_aquiredRound.ChipsGained, Is.EqualTo(actionChipsGained));
        }
コード例 #2
0
        static IAquiredPokerPlayer CreatePostingPlayer(string someName, double postedAmount)
        {
            IAquiredPokerPlayer aquiredPlayer = CreateAquiredPlayer(someName);
            var round = new AquiredPokerRound();

            round.Add(new AquiredPokerAction(ActionTypes.P, postedAmount));
            aquiredPlayer.AddRound(round);

            return(aquiredPlayer);
        }
コード例 #3
0
        static IAquiredPokerPlayer CreateNonPostingActivePlayer(string someName, ActionTypes action, double ratio)
        {
            IAquiredPokerPlayer aquiredPlayer = CreateAquiredPlayer(someName);
            var round = new AquiredPokerRound();

            round.Add(new AquiredPokerAction(action, ratio));
            aquiredPlayer.AddRound(round);

            return(aquiredPlayer);
        }