Goedel.Throw.IfNot C# (CSharp) Method

IfNot() public static method

Throw an exception if the specified test is met.
public static IfNot ( bool Test, string Report ) : void
Test bool Must be false or exception is thrown.
Report string Message to report.
return void
        public static void IfNot(bool Test, string Report) {
            if (!Test) throw new Throw(Report);
            }