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

Moq - the next mock object framework

Sunday, April 20th, 2008

Daniel Cazzulino did a show and tell on Moq, a mock object framework that uses lambda expressions and fluent interfaces to try and improve the usually kludgy feel of creating mock objects. Scott Hanselman talks about some of the other approaches here. There really doesn't seem to be a completely ...

Introducing DDD - Date Driven Development

Wednesday, February 13th, 2008

I feel of all the *DD movements this one has the best chance of succeeding. Largely because unlike Test or Behavior Driven Development this requires people to only remember one letter, 'D'. It's also what a lot of people are doing already.

Continuous Integration in Visual Studio 2008

Tuesday, January 8th, 2008

Martin Woodward has a PowerPoint deck available on his blog. This covers the new features of Visual Studio team System 2008 with lots of information on the "Visual Studio 2008 Team Foundation Server Build" feature. I've not had a chance to try out the new Team Build features for CI ...

Gotchas: Upgrading your unit test projects to VS 2008

Monday, January 7th, 2008

Consider the following test... [TestMethod] [ExpectedException(typeof(ArgumentException))] public void TestExpectedException() { throw new ArgumentException("Bad argument"); } All looks pretty trivial right? You'd expect this to pass and indeed on my VS 2008 box it works fine. If you've upgraded your test project ...

Gotchas: MSTest AppDomain changes in VS 2008

Friday, January 4th, 2008

Here's something we at p&p ran into the other day while moving some of our unit tests from Visual Studio 2005 to 2008. This was actually on the EntLib forum and a bug logged by the community against the issue with the MSTest team. Unfortunately it didn't get fixed but ...

File system mocking for the lazy programmer

Monday, December 3rd, 2007

Until now I've always skipped mocking or stubbing out the .NET file system File/Path/Directory classes and just had tests that interacted with the disk. Largely because I was too lazy to mock out the file system. I would simply use the real file system and deal with the pitfalls and ...