AssertEx.HasValue<T> method (1 of 5)

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

See Also


AssertEx.HasValue<T> method (2 of 5)

Asserts that the result of valueExpression is not null.

public static T HasValue<T>(Expression<Func<T?>> valueExpression)
    where T : struct

See Also


AssertEx.HasValue<T> method (3 of 5)

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

See Also


AssertEx.HasValue<T1,T2> method (4 of 5)

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

See Also


AssertEx.HasValue<T1,T2> method (5 of 5)

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

See Also