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.
be is equivalent to equal for the .should.be(value) case
When a fluent exception is thrown during the evaluation of the left-hand side of this word, then the reason for the test is set to the reason parameter.
The word .equal tests its parameter for equality with the left-hand side. If the parameters are strings, a colored diff is used.
.should begins every fluent assertion in dshould. It takes no parameters on its own. Note that leaving a .should phrase unfinished will error at runtime.
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.