Example #1
0
        public void RegexToStringWithHttpMethods()
        {
            var matcher = new RegexMatcher("foobar");

            matcher.SetMatchingHttpMethods("get post");

            Assert.Equal("Regex 'foobar' (GET,POST)", matcher.ToString());
        }
Example #2
0
        public void RegexToStringWithoutHttpMethods()
        {
            var matcher = new RegexMatcher("foobar");

            Assert.Equal("Regex 'foobar'", matcher.ToString());
        }