コード例 #1
0
        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);
        }
コード例 #2
0
        public void TestOptionalSortParams()
        {
            var schema     = new SortParamsSchema();
            var sortParams = new SortParams(new[] { new SortField() });

            var results = schema.Validate(sortParams);

            Assert.Empty(results);
        }
コード例 #3
0
        public void TestEmptySortParams()
        {
            var schema     = new SortParamsSchema();
            var sortParams = new SortParams();

            var results = schema.Validate(sortParams);

            Assert.Empty(results);
        }