Method That
That(bool, string)
Ensures that an assertion is true.
public static void That(bool assertion, string message)Parameters
- assertionbool
- The assertion. 
- messagestring
- The message to use with the exception that is thrown if the assertion is false. 
That(bool, string, string)
Ensures that an assertion is true.
public static void That(bool assertion, string message, string paramName)Parameters
- assertionbool
- The assertion. 
- messagestring
- The message to use with the exception that is thrown if the assertion is false. 
- paramNamestring
- The parameter name. 
That<T>(T, Func<T, bool>, string, string)
Ensures that the value of a parameter meets an assertion.
public static T That<T>(T value, Func<T, bool> assertion, string paramName, string message)Parameters
- valueT
- The value of the parameter. 
- assertionFunc<T, bool>
- The assertion. 
- paramNamestring
- The name of the parameter. 
- messagestring
- The message to use with the exception that is thrown if the assertion is false. 
Returns
- T
- The value of the parameter. 
Type Parameters
- T
- Type type of the value.