public void TestNonEmptySortParams() { var schema = new SortParamsSchema(); var sortParams = new SortParams(new [] { new SortField("field1"), new SortField("field2", false) }); var results = schema.Validate(sortParams); Assert.Empty(results); }
public void TestOptionalSortParams() { var schema = new SortParamsSchema(); var sortParams = new SortParams(new[] { new SortField() }); var results = schema.Validate(sortParams); Assert.Empty(results); }
public void TestEmptySortParams() { var schema = new SortParamsSchema(); var sortParams = new SortParams(); var results = schema.Validate(sortParams); Assert.Empty(results); }