Beispiel #1
0
 public void CheckGame2()
 {
     using (new GoldenMasterTest())
     {
         var game = new TennisGame2("player1", "player2");
         RealisticTennisGame(game);
     }
 }
Beispiel #2
0
 public void CheckTennisGame2()
 {
     foreach (var score in this.allScores)
     {
         var game = new TennisGame2("player1", "player2");
         CheckScore(game, score);
     }
 }
 public void CheckTennisGame2()
 {
     using (new GoldenMasterTest(CurrentTestName))
     {
         var game = new TennisGame2("player1", "player2");
         CheckAllScores(game);
     }
 }
Beispiel #4
0
        public void CheckTennisGame2(int player1Score, int player2Score, string expectedScore)
        {
            _expectedScore = expectedScore;
            _player2Score  = player2Score;
            _player1Score  = player1Score;
            var game = new TennisGame2("player1", "player2");

            CheckAllScores(game);
        }
Beispiel #5
0
        public void Tennis2Test(int p1, int p2, string expected)
        {
            var game = new TennisGame2("player1", "player2");

            CheckAllScores(game, p1, p2, expected);
        }
Beispiel #6
0
        public void checkTennisGame2()
        {
            TennisGame2 game = new TennisGame2("player1", "player2");

            checkAllScores(game);
        }
Beispiel #7
0
        public void CheckGame2()
        {
            TennisGame2 game = new TennisGame2("player1", "player2");

            RealisticTennisGame(game);
        }
Beispiel #8
0
 public void CheckGame2()
 {
     TennisGame2 game = new TennisGame2("player1", "player2");
     RealisticTennisGame(game);
 }
Beispiel #9
0
 public void checkTennisGame2()
 {
     TennisGame2 game = new TennisGame2("player1", "player2");
     checkAllScores(game);
 }