Starts a chain of assertions on the result of valueExpression. Asserts that the result of valueExpression is not null
.
public static Assertable<T> HasValue<T>(Expression<Func<T>> valueExpression)
where T : class
Asserts that the result of valueExpression is not null
.
public static T HasValue<T>(Expression<Func<T?>> valueExpression)
where T : struct
Starts a chain of assertions on value. Asserts that value is not null
.
public static Assertable<T> HasValue<T>(T value, string name = null)
where T : class
Asserts that mapExpression does not return null
and allows chaining further asserts on that T2 value.
public static Task<Assertable<T2>> HasValue<T1, T2>(this Task<Assertable<T1>> source,
Expression<Func<T1, T2>> mapExpression)
where T1 : class
where T2 : class
Asserts that mapExpression does not return null
and allows chaining further asserts on that T2 value.
public static Task<T2> HasValue<T1, T2>(this Task<Assertable<T1>> source,
Expression<Func<T1, T2?>> mapExpression)
where T1 : class
where T2 : struct