示例#1
0
        public void Fail_match(string text)
        {
            var pattern = new HttpUri();
            var match   = pattern.Match(text);

            Assert.True(match.Success());
        }
示例#2
0
        public void Returns_a_match_with_http_Uri(string text, string uri)
        {
            var pattern = new HttpUri();
            var match   = (UriMatch)pattern.Match(text);

            Assert.True(match.Success());
            Assert.Equal(uri, match.Uri().ToString());
        }