Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   DUnitX: now has a WillRaiseAttribute to ease defining tests around code that should (https://www.delphipraxis.net/197709-dunitx-now-has-willraiseattribute-ease-defining-tests-around-code-should.html)

DP News-Robot 29. Aug 2018 12:30

DUnitX: now has a WillRaiseAttribute to ease defining tests around code that should
 
I stumbled over this commit message in [WayBack] “extended the TestAttribute with “Expected” property (#181)” which isn’t phrased correctly, but adds a very nice feature. The feature is about*WillRaiseAttribute: constructor WillRaiseAttribute.Create(AExpectedException: ExceptClass; const AInheritance: TExceptionInheritance); This allows tests like these: [WillRaise(EOutOfMemory)] procedure FailMe; [WillRaise(EHeapException, exDescendant)] procedure FailMeToo; [WillRaise(Excepti

Weiterlesen...


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:59 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz