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

Uses_custom_sort_column_name_for_composite_expression() private méthode

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