dshould

Undocumented in source.

Modules

ShouldType
module dshould.ShouldType
Undocumented in source.
basic
module dshould.basic
Undocumented in source.
contain
module dshould.contain
Undocumented in source.
empty
module dshould.empty
Undocumented in source.
stringcmp
module dshould.stringcmp
Undocumented in source.
thrown
module dshould.thrown
Undocumented in source.

Public Imports

dshould.ShouldType
public import dshould.ShouldType : because, should;
dshould.basic
public import dshould.basic;
dshould.contain
public import dshould.contain;
dshould.empty
public import dshould.empty;
dshould.stringcmp
public import dshould.stringcmp;
dshould.thrown
public import 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

be
void be(Should should, T value, Fence _, string file, size_t line)

be is equivalent to equal for the .should.be(value) case

be
auto be(Should should, T expected, ErrorValue error, Fence _, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
be
auto be(Should should)
Undocumented in source. Be warned that the author may not have intended to support it.
equal
void equal(Should should, T value, Fence _, string file, size_t line)

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

equal
auto equal(Should should)
Undocumented in source. Be warned that the author may not have intended to support it.

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