assertThrows

Returns true if the expression throws.

bool
assertThrows
(
T : Throwable = Exception
E
)
(
lazy E expression
,
string msg = T.stringof
,
string file = __FILE__
,
int line = __LINE__
)

Meta