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

Uses_custom_sort_column_name() private méthode

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