Пример #1
0
 public void ThrowIfNotSucceed_throws_if_IsSucceed_is_false()
 {
     var cr = new CheckResult(false, null);
     Assert.Throws<ApplicationException>(() => cr.ThrowIfFailed());
 }
Пример #2
0
 public void ThrowIfNotSucceed_does_NOT_throw_if_IsSucceed_is_true()
 {
     var cr = new CheckResult(true, null);
     cr.ThrowIfFailed();
 }