Esempio n. 1
0
		public void Should_throw_an_exception()
		{
			const string pattern = "{controller}/{controller";

			var url = new UrlPattern(pattern);

			Assert.Throws<RoutingException>(() => url.ToRouteDefinition());
		}
Esempio n. 2
0
        public void Should_throw_an_exception()
        {
            const string pattern = "{controller/controller}";

            var url = new UrlPattern(pattern);

            Assert.Throws <RoutingException>(() => url.ToRouteDefinition());
        }
Esempio n. 3
0
		public void Setup()
		{
			_url = new UrlPattern(Pattern);
			_route = _url.ToRouteDefinition();
		}
Esempio n. 4
0
 public void Setup()
 {
     _url   = new UrlPattern(Pattern);
     _route = _url.ToRouteDefinition();
 }