static void TestCase(string pattern, IList <string> expected, Options options = null, IEnumerable <string> input = null)
        {
            input ??= files;

            Assert.Equal(
                string.Join(Environment.NewLine, expected.OrderBy(s => s)),
                string.Join(Environment.NewLine, Minimatcher.Filter(input, pattern, options).OrderBy(s => s))
                );

            var regex = Minimatcher.CreateRegex(pattern, options);

            actualRegexes.Add(Tuple.Create(pattern, regex == null ? "false" : "/" + regex.ToString() + "/" + (regex.Options == RegexOptions.IgnoreCase ? "i" : "")));
        }