static string ScoreForPlayersEqual(GamePoints points) { string scoreOfPlayerOne = Game.ScoreForPoint(points.PlayerOne); return points.IsAnyAboveThirty() ? "Deuce" : scoreOfPlayerOne + " All"; }
public void Then_Is_Any_Above_Thirty_Is_True() { var points = new GamePoints { PlayerTwo = 3 }; Assert.IsTrue(points.IsAnyAboveThirty()); }
static string ScoreForPlayersEqual(GamePoints points) { string scoreOfPlayerOne = Game.ScoreForPoint(points.PlayerOne); return(points.IsAnyAboveThirty() ? "Deuce" : scoreOfPlayerOne + " All"); }
public void Then_Is_Any_Above_Thirty_Is_True() { var points = new GamePoints { PlayerTwo = 3 }; Assert.IsTrue(points.IsAnyAboveThirty()); }