コード例 #1
0
		public void TestUrlResolving()
		{
			PortFactory.AspPort = 1000;
			var urls = new[]{"~/home","/home","http://www.google.com"};
			Approvals.VerifyAll("Resolving:", urls,
				u => "{0} => {1}".FormatWith(u,AspApprovals.ResolveUrl(u)));
		}
コード例 #2
0
		public void TestRoutes()
		{
			var urls = new[] {"/Home/Index/Hello", "/"};
			AspApprovals.VerifyRouting(MvcApplication.RegisterRoutes, urls);
		}