Beispiel #1
0
        public static string GetShortList(ITesterDescription descriptions)
        {
            var result = EnumExtension.GetValues <KeywordPriority>().OrderByDescending(x => (int)x).ToDictionary(x => x, x => new List <string>());

            foreach (var description in descriptions.GetDescriptions().DistinctBy(x => x.Key).OrderBy(x => x.Key))
            {
                result[description.Priority].Add(GetShortList_Line(description));
            }
            return(result.Where(x => x.Value.Count > 0).Select(x => x.Value.JoinToString('\n')).JoinToString("\n\n"));
        }
Beispiel #2
0
 private static string GetHint(ITesterDescription descriptions)
 {
     return(GetShortList(descriptions).ToSentence());
 }
Beispiel #3
0
 private static string GetHint(ITesterDescription descriptions)
 {
     return($"Supported properties (for numbers, you can use “<” or “>” instead of “:”):\n\n{GetShortList(descriptions).ToSentence()}\n\nTo learn more about filtering, go to [b]About/Everything About Filtering[/b] section");
 }