Example #1
0
        public void ShouldGetFifteen()
        {
            var playerPoints = new PlayerGameScore();

            playerPoints.Win();
            Assert.AreEqual("15", playerPoints.Points);
        }
Example #2
0
        public void ShouldGetThirty()
        {
            var playerPoints = new PlayerGameScore();

            playerPoints.Win();
            playerPoints.Win();
            Assert.AreEqual("30", playerPoints.Points);
        }
Example #3
0
        public void ShouldWin()
        {
            var playerPoints = new PlayerGameScore();

            playerPoints.Win();
            playerPoints.Win();
            playerPoints.Win();
            playerPoints.Win();
            Assert.AreEqual("game", playerPoints.Points);
        }
Example #4
0
        public void ShouldStartAtZero()
        {
            var playerPoints = new PlayerGameScore();

            Assert.AreEqual("0", playerPoints.Points);
        }