Beispiel #1
0
 public Game()
 {
     Player1 = new Player();
     Player2= new Player();
     GameIsComplete = false;
     _scorer = new Scorer();
 }
        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());
        }
        public void GetPoints_WithNewPlayer_Returns0()
        {
            Player player = new Player();

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