Ejemplo n.º 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> >());
Ejemplo n.º 2
0
 public static ObjectAssertions BeAResult <TResult>(this ObjectAssertions objectAssertions) where TResult : Result
 => objectAssertions
 .SideEffects(x => x.BeOfType <TResult>(),
              x => x.BeAssignableTo <Result>());