Beispiel #1
0
        public void Fiften_Fiften_Home_Thirty_Fiften()
        {
            this.InitialPlayer(TennisScore.Fiften, TennisScore.Fiften);
            TennisGame tennisGame = new TennisGame(this.HomePlayer, this.AwayPlayer);
            var        excepct    = "Thirty_Fiften";
            var        actual     = tennisGame.GetCurrentScore(TennisPlayerType.HomePlayer);

            Assert.AreEqual(excepct, actual);
        }
Beispiel #2
0
        public void Adv_Forty_Away_Deuce()
        {
            this.InitialPlayer(TennisScore.Adv, TennisScore.Forty);
            TennisGame tennisGame = new TennisGame(this.HomePlayer, this.AwayPlayer);
            var        excepct    = "Deuce";
            var        actual     = tennisGame.GetCurrentScore(TennisPlayerType.AwayPlayer);

            Assert.AreEqual(excepct, actual);
        }
Beispiel #3
0
        public void Love_Love_Away_Love_Fifty()
        {
            this.InitialPlayer(TennisScore.Love, TennisScore.Love);
            TennisGame tennisGame = new TennisGame(this.HomePlayer, this.AwayPlayer);
            var        excepct    = "Love_Fiften";
            var        actual     = tennisGame.GetCurrentScore(TennisPlayerType.AwayPlayer);

            Assert.AreEqual(excepct, actual);
        }
Beispiel #4
0
        public void Forty_Forty_Home_Home_Win()
        {
            this.InitialPlayer(TennisScore.Forty, TennisScore.Forty);
            TennisGame tennisGame = new TennisGame(this.HomePlayer, this.AwayPlayer);
            var        excepct    = "Adv_Forty";
            var        actual     = tennisGame.GetCurrentScore(TennisPlayerType.HomePlayer);

            Assert.AreEqual(excepct, actual);
        }