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