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); }
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); }
private void CreateScoreBoard() { ScoreBoard = new ScoreBoard(Game, Player1Name, Player2Name); }