public void then_be_false_given_org_frontslash_apache_frontslash_two_star_frontslash_cvs_frontslash_one_star(string directory)
            {
                // Arrange
                var generator = new AntRegexGenerator();

                // Act
                var regex = generator.GetRegexForFilter("org/apache/**/CVS/*");

                // Assert
                Assert.That(regex.IsMatch(directory), Is.False);
            }
            public void then_should_be_false_given_directory_character_and_filter_equals_one_star(string character)
            {
                // Arrange
                var generator = new AntRegexGenerator();

                // Act
                var regex = generator.GetRegexForFilter("*");

                // Assert
                Assert.That(regex.IsMatch(character), Is.False);
            }
            public void then_return_true_given_directory_has_test_in_path_or_file(string directory)
            {
                // Arrange
                var generator = new AntRegexGenerator();

                // Act
                var regex = generator.GetRegexForFilter("**/test/**");

                // Assert
                Assert.That(regex.IsMatch(directory), Is.True);
            }
            public void then_should_be_true_given_single_character_and_filter_equals_one_star(string character)
            {
                // Arrange
                var generator = new AntRegexGenerator();

                // Act
                var regex = generator.GetRegexForFilter("*");

                // Assert
                var isMatch = regex.IsMatch(character);
                Assert.That(isMatch, Is.True);
            }
            public void then_should_be_true_given_filter_equal_to_two_stars(string directory)
            {
                // Arrange
                var generator = new AntRegexGenerator();

                // Act
                var regex = generator.GetRegexForFilter("org/apache/jakarta/**");

                // Assert
                Assert.That(regex.IsMatch(directory), Is.True);
            }
            public void then_should_be_true_given_filter_ends_with_frontslash(string directory)
            {
                // Arrange
                var generator = new AntRegexGenerator();

                // Act
                var regex = generator.GetRegexForFilter("org/apache/jakarta//");

                // Assert
                Assert.That(regex.IsMatch(directory), Is.True);
            }
            public void then_should_be_false_given_filter_equal_to_two_stars()
            {
                // Arrange
                var generator = new AntRegexGenerator();

                // Act
                var regex = generator.GetRegexForFilter("org/apache/jakarta/**");

                // Assert
                Assert.That(regex.IsMatch("org/apache/CVS/foo/bar/Entries"), Is.False);
            }
            public void then_should_be_false_given_filter_ends_with_frontslash()
            {
                // Arrange
                var generator = new AntRegexGenerator();

                // Act
                var regex = generator.GetRegexForFilter("org/apache/jakarta//");

                // Assert
                Assert.That(regex.IsMatch("org/apache/CVS/foo/bar/Entries"), Is.False);
            }