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

Should_render_grid_with_sort_direction_descending() private méthode

private Should_render_grid_with_sort_direction_descending ( ) : void
Résultat void
        public void Should_render_grid_with_sort_direction_descending()
        {
            ColumnFor(x => x.Name);
            _model.Sort(new GridSortOptions() { Column = "Name", Direction = SortDirection.Descending });
            string expected = "<table class=\"grid\"><thead><tr><th class=\"sort_desc\"><a href=\"/?Column=Name&amp;Direction=Ascending\">Name</a></th></tr></thead><tbody><tr class=\"gridrow\"><td>Jeremy</td></tr></tbody></table>";
            RenderGrid().ShouldEqual(expected);
        }
GridRendererTester