BlackLinks_UnitTests.RoutingTest.TestNotFoundRoute C# (CSharp) Method

TestNotFoundRoute() private method

private TestNotFoundRoute ( ) : void
return void
        public void TestNotFoundRoute()
        {
            var router = new BlackApplication().Routes;
            router.RootRoute = new Route()
            {
                ControllerType = typeof(RoutingController),
                ActionName = "Index",
                Name="/"
            };
            router.NotFoundRoute = new Route()
            {
                ControllerType = typeof(RoutingController),
                ActionName = "NotFound",
                Name="/lost"
            };
            Assert.AreEqual(router.NotFoundRoute,router.Evaluate("/this_route_does_not_exists_at_all").Route);
            Assert.AreEqual(router.NotFoundRoute,router.Evaluate("/this/route/does/not/exists/at/all").Route);
        }