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

Should_render_initial_direction_descending_when_it_is_not_the_currently_sorted_column() private méthode

        public void Should_render_initial_direction_descending_when_it_is_not_the_currently_sorted_column()
        {
            ColumnFor(x => x.Id);
            ColumnFor(x => x.Name).SortInitialDirection(SortDirection.Descending);
            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=Descending\">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