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.

  1. void throwA(Should should, string msgTest, Fence _, string file, size_t line)
    template throwA(T : Throwable)
    void
    throwA
    (
    Should
    )
    (
    Should should
    ,
    string msgTest
    ,
    Fence _ = Fence()
    ,
    string file = __FILE__
    ,
    size_t line = __LINE__
    )
    if (
    isInstanceOf!(ShouldType, Should)
    )
  2. auto throwA(Should should, Fence _, string file, size_t line)

Members

Functions

throwA
void throwA(Should should, string msgTest, Fence _, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
throwA
auto throwA(Should should, Fence _, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta