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

Should_render_grid_with_sort_direction_ascending() private méthode

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