phobos-next v0.1.0 (2016-04-10T11:57:37Z)
Home
Dub
Repo
assertThrows
assert_ex
Returns true if the expression throws.
@
trusted
bool
assertThrows
(
T
:
Throwable
=
Exception
E
)
(
lazy
E
expression
,
string
msg
=
T.stringof
,
string
file
= __FILE__
,
int
line
= __LINE__
)
Meta
Source
See Implementation
assert_ex
aliases
assertE
assertLT
assertLTE
assertNE
functions
assertEqual
assertLessThan
assertLessThanOrEqual
assertNotEqual
assertThrows
assertTrue
Returns true if the expression throws.