public void TestMainMethods() { _server.WithPaging(5); Assert.IsTrue(_server.Grid.EnablePaging); Assert.AreEqual(_server.Grid.Pager.PageSize, 5); _server.WithMultipleFilters(); Assert.IsTrue(_server.Grid.RenderOptions.AllowMultipleFilters); _server.Searchable(); Assert.IsTrue(_server.Grid.SearchingEnabled); Assert.IsTrue(_server.Grid.SearchingOnlyTextColumns); _server.Named("test"); Assert.AreEqual(_server.Grid.RenderOptions.GridName, "test"); _server.Selectable(true); Assert.IsTrue(_server.Grid.RenderOptions.Selectable); _server.ChangePageSize(true); Assert.IsTrue(_server.Grid.Pager.ChangePageSize); _server.ClearFiltersButton(true); Assert.IsTrue(_server.Grid.ClearFiltersButtonEnabled); _server.ExtSortable(true); Assert.IsTrue(_server.Grid.ExtSortingEnabled); _server.Groupable(false); Assert.IsFalse(_server.Grid.ExtSortingEnabled); Assert.IsFalse(_server.Grid.GroupingEnabled); }
public void TestMainMethods() { _server.WithPaging(5); Assert.IsTrue(_server.Grid.EnablePaging); Assert.AreEqual(_server.Grid.Pager.PageSize, 5); _server.WithMultipleFilters(); Assert.IsTrue(_server.Grid.RenderOptions.AllowMultipleFilters); _server.Named("test"); Assert.AreEqual(_server.Grid.RenderOptions.GridName, "test"); _server.Selectable(true); Assert.IsTrue(_server.Grid.RenderOptions.Selectable); }