示例#1
0
        public void DescribeYWinner()
        {
            int    score       = MoveScoreConverter.ConvertWin(Occupied.PlayerY, 2);
            string description = MoveScoreConverter.DescribeScore(score);

            Assert.AreEqual("Win by Y in 2 moves", description);
        }
示例#2
0
        public void DescribePositiveScore()
        {
            string description = MoveScoreConverter.DescribeScore(12);

            Assert.AreEqual("X ahead with 12", description);
        }
示例#3
0
        public void DescribeNegativeScore()
        {
            string description = MoveScoreConverter.DescribeScore(-13);

            Assert.AreEqual("Y ahead with -13", description);
        }
示例#4
0
        public void DescribeZeroScore()
        {
            string description = MoveScoreConverter.DescribeScore(0);

            Assert.AreEqual("Score: 0", description);
        }