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