Пример #1
0
 private static ObjectAssertions BeAResult <T, TResult>(ObjectAssertions objectAssertions) where TResult : Result <T>
 => objectAssertions
 .SideEffects(x => x.BeOfType <TResult>(),
              x => x.BeAssignableTo <Result <T> >());
Пример #2
0
 public static ObjectAssertions BeAResult <TResult>(this ObjectAssertions objectAssertions) where TResult : Result
 => objectAssertions
 .SideEffects(x => x.BeOfType <TResult>(),
              x => x.BeAssignableTo <Result>());