Exemplo n.º 1
0
        public void GetPoints_WithValidNumberOfPoints_ReturnsPointTotal(int numberOfPoints, int expected)
        {
            Player player = new Player();

            for (int i = 0; i < numberOfPoints; i++)
            {
                player.ScorePoint();
            }

            Assert.AreEqual(expected, player.GetPoints());
        }
Exemplo n.º 2
0
        public void GetPoints_WithNewPlayer_Returns0()
        {
            Player player = new Player();

            Assert.AreEqual(0, player.GetPoints());
        }