Пример #1
0
		public void Should_throw_an_exception()
		{
			const string pattern = "{controller}/{controller";

			var url = new UrlPattern(pattern);

			Assert.Throws<RoutingException>(() => url.ToRouteDefinition());
		}
Пример #2
0
        public void Should_throw_an_exception()
        {
            const string pattern = "{controller/controller}";

            var url = new UrlPattern(pattern);

            Assert.Throws <RoutingException>(() => url.ToRouteDefinition());
        }
Пример #3
0
		public void Setup()
		{
			_url = new UrlPattern(Pattern);
			_route = _url.ToRouteDefinition();
		}
Пример #4
0
 public void Setup()
 {
     _url   = new UrlPattern(Pattern);
     _route = _url.ToRouteDefinition();
 }