NUnit Sample Extension Correction

As pointed out by Sara Lee McLindon, the SampleFixtureExtension example in the NUnit 2.4 Beta 2 release doesn’t actually work. You can correct it by adding the following method to the SampleFixtureExtensionBuilder class.

protected override TestSuite MakeSuite(Type type)
	return new SampleFixtureExtension( type );

Without this fix, the builder simply creates an NUnitTestFixture and no new behavior takes place when the test is run.

Alternatively, you can download a new copy of the affected source file here.

Add a Comment

You must be logged in to post a comment.