Example #1
0
 public void GetResultAsyncShouldReturnPassResultIfObjectIsNull(Null sut, [RuleContext] RuleContext context)
 {
     Assert.That(() => sut.GetResultAsync(null, context), Is.PassingValidationResult);
 }
Example #2
0
 public void GetResultAsyncShouldReturnFailResultIfObjectIsNotNull(Null sut, [RuleContext] RuleContext context, object obj)
 {
     Assert.That(() => sut.GetResultAsync(obj, context), Is.FailingValidationResult);
 }