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)); }
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); }
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); }