gkb / googletest

Automatically exported from code.google.com/p/googletest
0 stars 0 forks source link

Exception testing macros required #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Exception testing macros would be useful for many people, especially on 
Windows where hard to avoid exceptions.

Required macros:
EXPECT_THROW(Expression, ExpectedExceptionType)
ASSERT_THROW(Expression, ExpectedExceptionType)
EXPECT_NO_THROW(Expression)
ASSERT_NO_THROW(Expression)

Where  *_THROW asserts that the given expression throws an exception of 
the specified type, while *_NO_THROW asserts that the given expression 
does not throw any exception at all.

Original issue reported on code.google.com by Balazs....@gmail.com on 16 Jul 2008 at 7:52

GoogleCodeExporter commented 9 years ago

Original comment by shiq...@gmail.com on 31 Jul 2008 at 6:39

GoogleCodeExporter commented 9 years ago

Original comment by shiq...@gmail.com on 31 Jul 2008 at 6:41

GoogleCodeExporter commented 9 years ago
Implemented.  Will be available in 1.1.0.

Original comment by shiq...@gmail.com on 17 Sep 2008 at 9:48