tag:blogger.com,1999:blog-10106032.post3129004149291431046..comments2024-03-14T09:24:53.310+00:00Comments on Entropy Overload: Anonymous methods in testing / profiling - Pt. 2Barry Kellyhttp://www.blogger.com/profile/10559947643606684495noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-10106032.post-22572773508429852662008-09-01T19:31:00.000+01:002008-09-01T19:31:00.000+01:00This is a nice example. Thanks for the blogs, I'm ...This is a nice example. Thanks for the blogs, I'm almost beginning to understand these anonymous methods ;-)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-10106032.post-23378464408732498412008-09-01T11:48:00.000+01:002008-09-01T11:48:00.000+01:00Now that is quite neat. Very similar to the sort ...Now that is quite neat. Very similar to the sort of test code I write with Smoketest:<BR/><BR/>procedure TTestCase.TestMethod;<BR/>begin<BR/>try<BR/> .. test case code<BR/> ExpectException(EAccessViolation);<BR/>except<BR/> ExpectException(EAccessViolation);<BR/>end;<BR/><BR/>The need to repeat the ExpectException() test being needed to catch both the pass (got the exception) and fail (didn't) conditions.<BR/><BR/>That repetition isn't particularly arduous but it is a little ugly.Anonymousnoreply@blogger.com