SQL-Unit  1.6
Functions
AssertThrew.ssunit.sql File Reference

The AssertThrew stored procedure. More...

Functions

int AssertThrew (TextMessage @error, ProcedureName @procedure)
 Asserts that the test raised an error that contained the specified message.

Detailed Description

The AssertThrew stored procedure.

Author:
Chris Oldwood

Function Documentation

int AssertThrew ( TextMessage error,
ProcedureName procedure 
)

Asserts that the test raised an error that contained the specified message.

The error is compared with the LIKE operator and so can contain wildcard characters.

Note:
The helper procedure should contain the '_@Helper@_' attribute in its name so that it is dropped automatically by the framework at the end of the test run to save dropping it manually.
Parameters:
errorThe expected error message.
procedureThe helper procedure to run.