MvcContrib.UnitTests.UI.Grid.GridRendererTester.Should_render_all_sort_links_ascending_when_option_is_ascending_and_no_column_currently_sorted C# (CSharp) Méthode

Should_render_all_sort_links_ascending_when_option_is_ascending_and_no_column_currently_sorted() private méthode

        public void Should_render_all_sort_links_ascending_when_option_is_ascending_and_no_column_currently_sorted()
        {
            ColumnFor(x => x.Id);
            ColumnFor(x => x.Name);
            ColumnFor(x => x.DateOfBirth).Format("{0:M/d/yyyy}");
            _model.Sort(new GridSortOptions() { Direction = SortDirection.Ascending });
            string expected = "<table class=\"grid\"><thead><tr><th><a href=\"/?Column=Id&amp;Direction=Ascending\">Id</a></th><th><a href=\"/?Column=Name&amp;Direction=Ascending\">Name</a></th><th><a href=\"/?Column=DateOfBirth&amp;Direction=Ascending\">Date Of Birth</a></th></tr></thead><tbody><tr class=\"gridrow\"><td>1</td><td>Jeremy</td><td>4/19/1987</td></tr></tbody></table>";
            RenderGrid().ShouldEqual(expected);
        }
GridRendererTester