public void Empty() { SharkPath path = new SharkPath(""); Assert.True(path.MatchesRoute("/")); Assert.False(path.MatchesRoute("")); }
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")); }