public void Defines_Fallback_Url()
 {
     var route = new MyHomeRouter.GetRoute();
     route.Url.ShouldEqual("my/home");
     route.AlternateUrls.ShouldNotBeNull();
     route.AlternateUrls.Count().ShouldEqual(1);
     route.AlternateUrls.Single().ShouldEqual("my");
 }
Exemple #2
0
            public void Defines_Fallback_Url()
            {
                var route = new MyHomeRouter.GetRoute();

                route.Url.ShouldEqual("my/home");
                route.AlternateUrls.ShouldNotBeNull();
                route.AlternateUrls.Count().ShouldEqual(1);
                route.AlternateUrls.Single().ShouldEqual("my");
            }