public void BreadcrumbFor_IsCaseInsensitive() { route["controller"] = "profile"; route["action"] = "edit"; route["area"] = null; SiteMapNode[] actual = siteMap.BreadcrumbFor(context).ToArray(); Assert.Equal(3, actual.Length); Assert.Equal(Resource.ForSiteMap(null, "Home", "Index"), actual[0].Title); Assert.Equal("fa fa-home", actual[0].IconClass); Assert.Equal("Home", actual[0].Controller); Assert.Equal("Index", actual[0].Action); Assert.Equal("/test", actual[0].Url); Assert.Null(actual[0].Area); Assert.Equal(Resource.ForSiteMap(null, "Profile", null), actual[1].Title); Assert.Equal("fa fa-user", actual[1].IconClass); Assert.Equal("Profile", actual[1].Controller); Assert.Equal("#", actual[1].Url); Assert.Null(actual[1].Action); Assert.Null(actual[1].Area); Assert.Equal(Resource.ForSiteMap(null, "Profile", "Edit"), actual[2].Title); Assert.Equal("fa fa-pencil-alt", actual[2].IconClass); Assert.Equal("Profile", actual[2].Controller); Assert.Equal("Edit", actual[2].Action); Assert.Equal("/test", actual[2].Url); Assert.Null(actual[2].Area); }
public void BreadcrumbFor_IsCaseInsensitive() { route["controller"] = "profile"; route["action"] = "edit"; route["area"] = null; SiteMapNode[] actual = siteMap.BreadcrumbFor(context).ToArray(); Assert.Equal(2, actual.Length); Assert.Equal("Home/Index", actual[0].Path); Assert.Equal("fa fa-home", actual[0].IconClass); Assert.Equal("Profile/Edit", actual[1].Path); Assert.Equal("fa fa-pencil-alt", actual[1].IconClass); }