Dealing With Rounding Errors in Numerical Unit Tests

Monday, December 1st, 2008

I've been writing some unit tests which attempt to verify some mathematical modeling results. Here's a test that creates a physical model (of a universe) containing some stars and verifies the initial energy of the system. [Fact] public void Energy() ...

Agile 2008 – Industrial Logic’s Agile eLearning

Friday, August 15th, 2008

One of the things that really impressed me at the conference was Industrial Logic's Agile eLearning product/project. I went to two good talks by Joshua Kerievsky (refactoring) and Brian Foote (patterns) both of which demo'ed their eLearning stuff. It's arranged in albums and makes lots of use of videos. ...

No Slow Unit Tests with xUnit.net

Monday, July 21st, 2008

Ever discovered people on your team have gotten into the habit of writing slow unit tests? Tests that take half a minute to execute, that bog down both your development and your build server? With xUnit.net you can extend the Fact attribute to set the test timeout. In the example below ...

An xUnit.net Assert.Throws() Code Snippet

Tuesday, June 24th, 2008

I was mucking around with code snippets over the weekend - it killed the time in between feeling sick. As my unit testing framework of choice is XUnit I thought I've have a go at adding a snippet or two around that. xUnit already comes with a nice code snippet for ...

xUnit.net 1.0 released

Thursday, April 24th, 2008

Brad's blog announces the release of xUnit 1.0 RTM. Well worth the wait I'm sure. Technorati Tags: Unit testing,TDD,xUnit