RSS
 

Introducing Power Assert .NET

12 Nov

I’ve just released a new open source project on codeplex: http://powerassert.codeplex.com

Power Assert .NET is a .NET port of Groovy’s PowerAssert, which replaces your normal unit test assertions.

Unlike the standard assertions built into nunit, MSTest, and xunit etc; Power Assert gives you a breakdown of all the values within your assertion expression, making it quicker for you to hunt down the cause of the test failure:

System.Exception : IsTrue failed, expression was:
x + 5 == d.Month * y
| | | | | | |
| | | | | | 6
| | | | | 18
| | | | 3
| | | 01/03/2010 00:00:00
| | False
| 16
11

It’s quite a simple little thing, but it’s already saved me lots of debugging time. Give it a go :)

 
1 Comment

Posted in .Net, Testing

 

Tags:

Leave a Reply

 

 
  1. O4G Daily Links-2010-Nov-15 « Only4Geeks

    15 November 2010 at 8:26 pm

    [...] Introducing Power Assert .NET http://www.robfe.com/2010/11/introducing-power-assert-net/ [...]