Example #1
0
        public void IsMatch_WithMismatchedVirtualPath_ReturnsFalse()
        {
            var route = new Route("tests/([a-z]+).html", typeof(TestAction));

            var result = route.IsMatch("tests/fa!l.html");

            Assert.False(result);
        }
Example #2
0
        public void IsMatch_WithMatchingVirtualPath_ReturnsTrue()
        {
            var route = new Route("tests/([a-z]+).html", typeof(TestAction));

            var result = route.IsMatch("tests/success.html");

            Assert.True(result);
        }