Exemple #1
0
 public void MaxSkip_Property_RoundTrips()
 {
     ReflectionAssert.NullableIntegerProperty <ODataValidationSettings, int>(
         new ODataValidationSettings(),
         o => o.MaxSkip,
         expectedDefaultValue: null,
         minLegalValue: 0,
         maxLegalValue: int.MaxValue,
         illegalLowerValue: -1,
         illegalUpperValue: null,
         roundTripTestValue: 2);
 }
Exemple #2
0
 public void PageSize_Property_RoundTrips()
 {
     ReflectionAssert.NullableIntegerProperty <ODataQuerySettings, int>(
         new ODataQuerySettings(),
         o => o.PageSize,
         expectedDefaultValue: null,
         minLegalValue: 1,
         maxLegalValue: int.MaxValue,
         illegalLowerValue: 0,
         illegalUpperValue: null,
         roundTripTestValue: 2);
 }