Example #1
0
 public void NewGame_Print_0_0()
 {
     const string expected = "0-0";
     var scoreBoard = new ScoreBoard(m_Game, m_Player1Name, m_Player2Name);
     var actual = scoreBoard.DisplayString;
     Assert.AreEqual(expected, actual);
 }
Example #2
0
 public void Player2WonGame_Print_Player2Name()
 {
     var expected = string.Format("{0} wins", m_Player2Name);
     var scoreBoard = new ScoreBoard(m_Game, m_Player1Name, m_Player2Name);
     m_Game.Player2Scores();
     m_Game.Player2Scores();
     m_Game.Player2Scores();
     m_Game.Player2Scores();
     var actual = scoreBoard.DisplayString;
     Assert.AreEqual(expected, actual);
 }
Example #3
0
 private void CreateScoreBoard()
 {
     ScoreBoard = new ScoreBoard(Game, Player1Name, Player2Name);
 }