Exemplo n.º 1
0
        public void AddsAllPlayersToRows_IfShowPreflopFoldsIsRequested()
        {
            _handHistoryViewModel = new HandHistoryViewModel().InitializeWith(true);
            _handHistoryViewModel.UpdateWith(_pokerHand);

            Assert.That(_handHistoryViewModel.PlayerRows.Count, Is.EqualTo(6));
        }
Exemplo n.º 2
0
        public void AddsOnlyActivePlayersToRows_ByDefault()
        {
            _handHistoryViewModel = new HandHistoryViewModel();
            _handHistoryViewModel.UpdateWith(_pokerHand);

            Assert.That(_handHistoryViewModel.PlayerRows.Count, Is.EqualTo(4));
        }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
        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()));
        }