AutoFixture/AutoFixture — pull request #158 by gertjvr (2013-08-25 06:25:50+00:00)
Title: NUnit

Hi I known there is already a pull request active to integrate nunit, but I ported AutoFixture.xUnit.net on a one to one basis and just created an NUnitAddin called AutoFixtureNUnitExtensions as suggested on NUnit.org.

I have ran all test in the scenario and they pass.

As explained on NUnit.org, all you have to do is copy the addin dll in bin\addins folder where you are running nunit.exe or nunit-console.exe from.

Also not sure what needs to change to get it intergrated into the build process.

Example:

[TestFixture]
public class Scenario
{
[Test, AutoTestCase]
public void AutoDataProvidesCorrectInteger(int primitiveValue)
{
Assert.AreNotEqual(0, primitiveValue);
}
}