Assertable<T>.HasValue<TResult> method (1 of 2)

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

See Also


Assertable<T>.HasValue<TResult> method (2 of 2)

Asserts that mapExpression does not return null

public TResult HasValue<TResult>(Expression<Func<T, TResult?>> mapExpression)
    where TResult : struct

See Also