예제 #1
0
 public static void TryValidatePropertyThrowsIf_value_is_null()
 {
     Assert.Throws <ArgumentNullException>(
         () => Validator.TryValidateProperty(null, s_estValidationContext, validationResults: null));
 }
예제 #2
0
 public static void TryValidatePropertyThrowsIf_ValidationContext_is_null()
 {
     Assert.Throws <ArgumentNullException>(
         () => Validator.TryValidateProperty(new object(), validationContext: null, validationResults: null));
 }