Beispiel #1
0
        public static string ToShortString(this PointNumber number)
        {
            switch (number)
            {
            case PointNumber.Love:
                return("0");

            case PointNumber.Fifteen:
                return("15");

            case PointNumber.Thirty:
                return("30");

            case PointNumber.Fourty:
                return("40");

            case PointNumber.Advantage:
                return("Ad");

            case PointNumber.Game:
                return("**");

            default:
                throw new ArgumentException("");
            }
        }
Beispiel #2
0
 public TeamScores(ITeamInMatch team, int setCount, int gameCount, PointNumber points)
 {
     Team      = team;// ?? throw new ArgumentNullException(nameof(team));
     SetCount  = setCount;
     GameCount = gameCount;
     Points    = points;
 }
Beispiel #3
0
 public static bool IsGameSet(this PointNumber number) => number == PointNumber.Game;