[Issue 4644] assertExceptionThrown to assert that a particular exception was thrown

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 15 01:49:11 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4644



--- Comment #1 from Jonathan M Davis <jmdavisProg at gmail.com> 2010-08-15 01:49:07 PDT ---
A useful counterpart might be assertExceptionNotThrown, though I think that an
exception escaping the unittest block equates to test failure, so I'm not sure
that it would be necessary. It would make tests clearer, however, since instead
of having seemingly pointless statements, you would be clearly indicating that
you were making sure that that statement didn't result in a thrown exception.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list