Joe White’s Blog

Life, .NET, and Cats


DUnitLite 0.5 released

Version 0.5 of DUnitLite is now available. This is a minor enhancement release.

Download it here: DUnitLite 0.5

What’s new in 0.5

  • Should.ReferTo now works with interfaces, and can mix and match between objects and interfaces. It also correctly works around the interface reference-equality problem.
  • Added Given as an alias for Specify. So if you want to document your assumptions at the beginning of your test, you can use Given.That(...) to improve readability.
  • Added Should.[Not.]Be.False and Should.[Not.]Be.True.
  • Added Should.[Not.]Be.Null and Should.[Not.]Be.Assigned. Both work with either objects or interfaces.
  • Added Should.[Not.]Be.GreaterThanOrEqualTo and Should.[Not.]Be.LessThanOrEqualTo, as aliases for AtLeast and AtMost.

2 Responses to “DUnitLite 0.5 released”

  1. Giovanni Says:

    Hi Joe,

    compiling DUnitAssertion with D2010 raises the following error

    [DCC Fatal Error] ConstraintTests.pas(684): F2051 Unit ConstraintTests was compiled with a different version of Specifications.Should

    Do you plan to make your DUnitLite compatible with D2010?

    Thank you very much.

    Best regards,
    Giovanni

  2. Joe Says:

    I don’t have Delphi 2010, so no, I don’t plan to make DUnitLite support it. Feel free to send me whatever changes might be required — or to post an updated version yourself somewhere, since it’s open-source (I’d be happy to post a link to any updated version).

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Joe White's Blog copyright © 2004-2008. Portions of the site layout use Yahoo! YUI Reset, Fonts, and Grids.
Proudly powered by WordPress. Entries (RSS) and Comments (RSS).