private static ObjectAssertions BeAResult <T, TResult>(ObjectAssertions objectAssertions) where TResult : Result <T> => objectAssertions .SideEffects(x => x.BeOfType <TResult>(), x => x.BeAssignableTo <Result <T> >());
public static ObjectAssertions BeAResult <TResult>(this ObjectAssertions objectAssertions) where TResult : Result => objectAssertions .SideEffects(x => x.BeOfType <TResult>(), x => x.BeAssignableTo <Result>());