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