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."); } } }
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}'"); } } }