Geeks With Blogs
Simon Laroche's Blog December 2005 Entries
Chain constructors refactoring in C#
In Refactoring to Patterns, Joshua Kerievsky describes the chain contructor refactoring that can be used to remove duplicate code when a class has many contructors. I've been coding in C# for a while now and I never figured out how to chain constructors. As it turns out, its extremely simple. You just make the call by adding a colon and then the this keyword after the constructor parameters and pass along the parameters and default values you need. If I use Joshua's exemple it would look like this: ......

Posted On Monday, December 5, 2005 4:28 PM

In memory database article by Martin Fowler
There is an article by Martin Fowler on is his Bliki concerning In Memory Database at

Posted On Thursday, December 1, 2005 7:17 PM

NUnit 2.2.3 Test runner interface

I have been looking at the NUnit 2.2.3 release and it seems that TestRunner interface as been modified. There is no more Out and Error properties.

I think this means that a new NAnt task will be needed in order to run tests build with NUnit 2.2.3.

Posted On Thursday, December 1, 2005 5:19 AM

Executing a NUnit2 Tasks in NAnt with a .NET 2.0 assembly
I ran into some problems trying to automate test fixtures build with the .NET Framework 2.0 using Cruise Control .NET, NAnt and NUnit 2.2 I would get a BadImageFormatException when my NAnt script got to the NUnit2 Task. As it turns out, the same error occurs in the NUnit GUI if it is not configured to use the correct .NET Framework version. To support .NET 2.0 just add a supported runtime element to the statup block: <startup> <supportedRuntime version="v2.0.50727" /> <supportedRuntime ......

Posted On Thursday, December 1, 2005 5:11 AM

Copyright © Simon Laroche | Powered by: