src/fursvp.helpers/Assertions.cs
/// <summary>
/// Throws an exception when an evaluation result is false.
/// </summary>
/// <param name="evaluation">The result that is expected to have evaluated to true.</param>
/// <param name="reason">The Exception message used when the result is not true and an Exception is thrown.</param>
Throws an exception when an evaluation result is false.
Throws an exception when an evaluation result is false .
public void That(bool evaluation, string reason)
        {
            if (!evaluation)
            {
                throw (TException)Ctor.Invoke(new[] { reason });
            }
        }
public void That ( bool evaluation , string reason ) { if ( ! evaluation ) { throw ( TException ) Ctor . Invoke ( new [ ] { reason } ) ; } }
Throws an exception when an evaluation result is false.
Throws an exception when an evaluation result is false .
evaluation
bool
The result that is expected to have evaluated to true.
The result that is expected to have evaluated to true .
reason
string
The Exception message used when the result is not true and an Exception is thrown.
The Exception message used when the result is not true and an Exception is thrown .