Exemple #1
0
 public static void ShouldNotContainLabel(this CompletionList list, params string[] expectedSuggestions)
 {
     foreach (var suggestion in expectedSuggestions)
     {
         if (list.Any(x => x.Label.Equals(suggestion, StringComparison.OrdinalIgnoreCase)))
         {
             Assert.Fail($"CompletionList contains completion labeled '{suggestion}' that should not be int the list.");
         }
     }
 }
Exemple #2
0
 public static void ShouldContainLabel(this CompletionList list, params string[] expectedSuggestions)
 {
     foreach (var suggestion in expectedSuggestions)
     {
         if (!list.Any(x => x.Label.Equals(suggestion, StringComparison.OrdinalIgnoreCase)))
         {
             Assert.Fail($"CompletionList doesn't contain expected completion labeled '{suggestion}'");
         }
     }
 }