public void PositiveMatches(string prefix, IEnumerable <string> expected) { var list = client.GetPrefixMatches(prefix)?.ToArray(); if (list?.Length > 1) { Array.Sort <string>(list); } Assert.Equal(expected, list); }