コード例 #1
0
 private static string FormatExpects(Lst <string> expects) =>
 expects.Count == 0
         ? ""
         : expects.Count == 1
             ? $"expecting {expects.Head()}"
             : $"expecting {String.Join(", ", expects.Take(expects.Count - 1))} or {expects.Last()}";