Asserts that mapExpression does not return null
and allows chaining further asserts on that TResult value.
public Assertable<TResult> HasValue<TResult>(Expression<Func<T, TResult>> mapExpression)
where TResult : class
Asserts that mapExpression does not return null
public TResult HasValue<TResult>(Expression<Func<T, TResult?>> mapExpression)
where TResult : struct