Helper for writing assertions using expression trees.
public static class AssertEx
name | description |
---|---|
static Context(…) | Adds informational context to all assertions made within the IDisposable scope. (5 methods) |
static Context<TValue>(…) | Adds informational context to all assertions made within the IDisposable scope. |
static DoesNotThrow(…) | Asserts that assertionExpression does not throw an exception. |
static DoesNotThrow<T>(…) | Asserts that assertionExpression does not throw an exception and allows chaining further asserts on the current value. |
static HasValue<T>(…) | Starts a chain of assertions on value. Asserts that value is not null . (3 methods) |
static HasValue<T1,T2>(…) | Asserts that mapExpression does not return null and allows chaining further asserts on that T2 value. (2 methods) |
static IsTrue(…) | Asserts that predicateExpression returns true . |
static IsTrue<T>(…) | Asserts that predicateExpression does not return false and allows chaining further asserts on the current value. |
static WaitUntil<T>(…) | Retries action until all assertions chained after this method pass. (2 methods) |