Posts Tagged “nunitaddin”

I released a new version of the RowTest Extension. I made following changes:

  • The description of a Row attribute will be copied to the created test case.

You can download it from the RowTest Extension page.

Technorati Tags , , ,

Comments No Comments »

I released a new version of the RowTest Extension. I made following changes:

  • null cannot be used as argument on .NET Framework 1.1. A new enum value SpecialValue.Null can be used instead. If the RowTest addin finds this value as argument the value will be translated to null.
  • Fixed Bug: Common NUnit attributes like Category, Description etc. don’t work for RowTest methods.

You can download it from the RowTest Extension page.

Technorati Tags , , ,

Comments No Comments »

I released a new version of the RowTest Extension. I made following changes:

  • Fixed Bug: SetUp and TearDown are not called on the RowTest test suite
  • Created new Test project for functional tests and reorganized samples.

You can download it from the RowTest Extension page.

Technorati Tags , , ,

Comments 4 Comments »

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.

The following code snippet shows you how to use the extension:

[TestFixture]
public class RowTestSample
{
   [RowTest]
   [Row( 1000, 10, 100.0000)]
   [Row(-1000, 10, -100.0000)]
   [Row( 1000, 7, 142.85715)]
   [Row( 1000, 0.00001, 100000000)]
   [Row(4195835, 3145729, 1.3338196)]
   public void DivisionTest(double num, double den, double res)
   {
     Assert.AreEqual(res, num / den, 0.00001);
   }
}

The current release does not support all features of MbUnit RowTests, e.g. Exceptions cannot be tested.

Technorati Tags , , ,

Comments 29 Comments »

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 Decorators wrap a single test case or a test fixture and therefore allow you to run some code before and after it.

Read the rest of this entry »

Technorati Tags , ,

Comments No Comments »

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.

Read the rest of this entry »

Technorati Tags , ,

Comments 3 Comments »