Allows making assertions about a particular value of type T.
public sealed class Assertable<T>
where T : class
name | description |
---|---|
Value { get; } | The current value which assertions are made on. |
Context(…) | Adds informational context to all assertions made using this chain. (5 methods) |
Context<TValue>(…) | Adds informational context to all assertions made using this chain. |
DoesNotThrow(…) | Asserts that assertionExpression does not throw an exception and allows chaining further asserts on the current value. |
HasValue<TResult>(…) | Asserts that mapExpression does not return null and allows chaining further asserts on that TResult value. (2 methods) |
IsTrue(…) | Asserts that predicateExpression does not return false and allows chaining further asserts on the current value. |
WithExtrator(…) | |
implicit operator | |
delegate TryExtractValue<T> | Delegate which can optionally extract a HasValue expression from a lambda sourceExpression. |