示例#1
0
        static string ScoreForPlayersEqual(GamePoints points)
        {
            string scoreOfPlayerOne = Game.ScoreForPoint(points.PlayerOne);

              return points.IsAnyAboveThirty()
            ? "Deuce"
            : scoreOfPlayerOne + " All";
        }
示例#2
0
        public void Then_Is_Any_Above_Thirty_Is_True()
        {
            var points = new GamePoints {
                PlayerTwo = 3
            };

            Assert.IsTrue(points.IsAnyAboveThirty());
        }
示例#3
0
        static string ScoreForPlayersEqual(GamePoints points)
        {
            string scoreOfPlayerOne = Game.ScoreForPoint(points.PlayerOne);

            return(points.IsAnyAboveThirty()
        ? "Deuce"
        : scoreOfPlayerOne + " All");
        }
示例#4
0
 public void Then_Is_Any_Above_Thirty_Is_True()
 {
     var points = new GamePoints { PlayerTwo = 3 };
       Assert.IsTrue(points.IsAnyAboveThirty());
 }