public void DescribeYWinner() { int score = MoveScoreConverter.ConvertWin(Occupied.PlayerY, 2); string description = MoveScoreConverter.DescribeScore(score); Assert.AreEqual("Win by Y in 2 moves", description); }
public void DescribePositiveScore() { string description = MoveScoreConverter.DescribeScore(12); Assert.AreEqual("X ahead with 12", description); }
public void DescribeNegativeScore() { string description = MoveScoreConverter.DescribeScore(-13); Assert.AreEqual("Y ahead with -13", description); }
public void DescribeZeroScore() { string description = MoveScoreConverter.DescribeScore(0); Assert.AreEqual("Score: 0", description); }