SQL-Unit  1.6
Functions
FormatDateTimeCompareFailure.ssunit_impl.sql File Reference

The FormatDateTimeCompareFailure user-defined function. More...

Functions

ssunit::TextMessage FormatDateTimeCompareFailure (TextMessage @error, datetime @expected, datetime @actual)
 Formats the message for a failed comparison between two DateTimes.

Detailed Description

The FormatDateTimeCompareFailure user-defined function.

Author:
Chris Oldwood

Function Documentation

ssunit::TextMessage FormatDateTimeCompareFailure ( TextMessage error,
datetime @  expected,
datetime @  actual 
)

Formats the message for a failed comparison between two DateTimes.

Parameters:
errorThe short error message.
expectedThe expected value.
actualThe actual value.