Ejemplo n.º 1
0
        public void Empty()
        {
            SharkPath path = new SharkPath("");

            Assert.True(path.MatchesRoute("/"));
            Assert.False(path.MatchesRoute(""));
        }
Ejemplo n.º 2
0
        public void SimpleRoute()
        {
            SharkPath path = new SharkPath("/hello");

            Assert.True(path.MatchesRoute("/hello"));
            Assert.False(path.MatchesRoute("/"));
            Assert.False(path.MatchesRoute("/hell"));
            Assert.False(path.MatchesRoute("/helloo"));
            Assert.False(path.MatchesRoute("/helio"));
        }