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

Should_render_grid_with_sort_direction_descending_as_the_default() private méthode

        public void Should_render_grid_with_sort_direction_descending_as_the_default()
        {
            ColumnFor(x => x.Id);
            ColumnFor(x => x.Name);
            ColumnFor(x => x.DateOfBirth).Format("{0:M/d/yyyy}");
            _model.Sort(new GridSortOptions() { Direction = SortDirection.Descending });
            string expected = "<table class=\"grid\"><thead><tr><th><a href=\"/?Column=Id&amp;Direction=Descending\">Id</a></th><th><a href=\"/?Column=Name&amp;Direction=Descending\">Name</a></th><th><a href=\"/?Column=DateOfBirth&amp;Direction=Descending\">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