public void AddsAllPlayersToRows_IfShowPreflopFoldsIsRequested() { _handHistoryViewModel = new HandHistoryViewModel().InitializeWith(true); _handHistoryViewModel.UpdateWith(_pokerHand); Assert.That(_handHistoryViewModel.PlayerRows.Count, Is.EqualTo(6)); }
public void AddsOnlyActivePlayersToRows_ByDefault() { _handHistoryViewModel = new HandHistoryViewModel(); _handHistoryViewModel.UpdateWith(_pokerHand); Assert.That(_handHistoryViewModel.PlayerRows.Count, Is.EqualTo(4)); }
public void CreatesBoardViewModelAndUpdatesItOnUpdate() { _pokerHand.Board = "As Kh Qd"; var board = new BoardViewModel(); board.UpdateWith(_pokerHand.Board); _handHistoryViewModel = new HandHistoryViewModel(); _handHistoryViewModel.UpdateWith(_pokerHand); Assert.That(_handHistoryViewModel.Board, Is.EqualTo(board)); }
public void CreatesHeaderCorrectly() { _handHistoryViewModel = new HandHistoryViewModel(); _handHistoryViewModel.UpdateWith(_pokerHand); Assert.That(_handHistoryViewModel.TournamentId, Is.EqualTo(_pokerHand.TournamentId.ToString())); Assert.That(_handHistoryViewModel.GameId, Is.EqualTo(_pokerHand.GameId.ToString())); Assert.That(_handHistoryViewModel.BigBlind, Is.EqualTo(_pokerHand.BB.ToString())); Assert.That(_handHistoryViewModel.SmallBlind, Is.EqualTo(_pokerHand.SB.ToString())); Assert.That(_handHistoryViewModel.Ante, Is.EqualTo(_pokerHand.Ante.ToString())); Assert.That(_handHistoryViewModel.TotalPlayers, Is.EqualTo(_pokerHand.TotalPlayers.ToString())); Assert.That(_handHistoryViewModel.TimeStamp, Is.EqualTo(_pokerHand.TimeStamp.ToString())); }