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); }
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); }
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); }
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); }