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&Direction=Ascending\">bar</a></th></tr></thead><tbody><tr class=\"gridrow\"><td>1Jeremy</td></tr></tbody></table>";
RenderGrid().ShouldEqual(expected);
}