Invalid SetUp method signature

"Kelly Anderson" <[email protected]> Wed, 6 Aug 2008 12:13:34 -0600
Newsgroups gmane.comp.windows.dotnet.nunit.devel
Message-ID <[email protected]>
Hi folks, I'm using the 2.5 alpha, and got this message running my test case.

Reason: Invalid SetUp method signature

Here's my code:

using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using Sonic.IC5;

namespace IC5Test
{
  [TestFixture]
  public class ProfileConfigTests
  {
    private IDataMap _map;

    [SetUp]
    public void setup()
    {
      FileState fileState = FileState.GetFileState();
      MockDirectory.SetTestRoot("TestRoot4");
      IBytes bytes = new RandomAccessMemory( Constants.EEPROM_SIZE );
      _map = E2MapBuilder.CreateMap( fileState.MapVersion, bytes, Side.Right );
    }

    [TestCase(1)] // Theory, what goes in comes out.
    public void ProfileConfigSavesAndRetrievesDefaultDaiIndex(int value)
    {
      ProfileConfig config = new ProfileConfig(_map);
      config.DefaultDaiIndex = value;
      Assert.That(config.DefaultDaiIndex, Is.EqualTo(value));
      Assert.That( _map.GetInt( MapConstants.REC_PROFILE_CONFIG,
"DefaultDaiIndex" ), Is.EqualTo( value ) );
    }
  }
}

Now everything worked fine when this was just a Test, so it has
something to do with converting Test to TestCase(1)... any thoughts?
Why would adding a parameter change the structural requirements of my
SetUp function?

-Kelly

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/