Category Archives: TDD

RowTest Extension 1.2.0

I released a new version of the RowTest Extension. I made following changes: Added build for .NET Framework 1.1. Assemblies are now strongly named. Added ExceptionMessage property to RowAttribute. It can be used to specify the message of an expected exception. Added TestName property to RowAttribute. It is used to provide a custom name of [...]
Also posted in .NET Development | Tagged , , | 7 Comments

TestDriven.NET supports RowTestExtension

Jamie Cansdale published an article on using parameterized tests with NUnit, TestDriven.NET and the RowTestExtension today. He released a new version of TestDriven.NET which improved the support of NUnit AddIns. Technorati Tags NUnit, rowtest, testdriven.net, unit-testing
Also posted in .NET Development | Tagged , , , | Leave a comment

RowTestExtension 1.1.0 released

Yesterday I released the new version of the RowTestExtension, an addin for NUnit. I have made following changes: Added ExpectedException property to the [Row] attribute. It can be used to specify which type of exception to expect when the given data is passed to the test. The [Row] attribute accepts now null values. Removed dependency [...]
Also posted in .NET Development | Tagged , , | 4 Comments

Verifying exceptions using IExpectException

The unit tests for NUnit contain an interesting pattern for verifying exception details. The abstract class MessageChecker in assembly nunit.framework.tests implements IExpectException, an interface introduced with NUnit 2.4. Test cases in derived test fixtures set the protected field expectedMessage to the expected exception message which can span several lines or include data from the test [...]
Also posted in .NET Development | Tagged , | Leave a comment

RowTests with NUnit 2.4

I had some time last week and therefore I played around with the new extensibility features of NUnit 2.4. I wanted to know, how difficult it is to implement the RowTest feature of MbUnit as NUnit Addin. Two hours later the RowTest Extension for NUnit was ready. I released the extension under the MIT license. [...]
Also posted in .NET Development | Tagged , , , | 33 Comments

Decorate Your Tests

In my last post I showed you how to write a minimal NUnit addin. It didn’t do anything useful, so let’s see what we can do with test decorators. What Is a Test Decorator? The Decorator Pattern describes a design for attaching additional responsibilities to an object dynamically. It is also known as Wrapper. Test [...]
Also posted in .NET Development | Tagged , , | Comments closed

How To Build an NUnit Addin

Since version 2.2.x of NUnit it was possible to build your own core extensions, but this feature was experimental. With the latest release Addins are officially supported. Core extensions can customize NUnit’s internal behavior such as the creation of tests and their execution. Technorati Tags NUnit, nunitaddin, unit-testing
Also posted in .NET Development | Tagged , , | 3 Comments