dshould

Modules

ShouldType
module dshould.ShouldType
basic
module dshould.basic
contain
module dshould.contain
stringcmp
module dshould.stringcmp
thrown
module dshould.thrown

Members

Aliases

throwAn
alias throwAn = throwA

The word .throwA (or .throwAn) expects its left-hand side expression to throw an exception. Instead of the cumbersome .where.msg.should.equal("msg"), the msg of the Exception to expect can be passed directly.

Functions

equal
void equal(Should should, T value, Fence _ = Fence(), string file = __FILE__, size_t line = __LINE__)

The word .equal tests its parameter for equality with the left-hand side. If the parameters are strings, a colored diff is used.

Templates

throwA
template throwA(T : Throwable)

The word .throwA (or .throwAn) expects its left-hand side expression to throw an exception. Instead of the cumbersome .where.msg.should.equal("msg"), the msg of the Exception to expect can be passed directly.

Meta