← Back to team overview

nunit-core team mailing list archive

[Bug 909607] Re: Values attribute support for enum types

 

Very nice idea. Think, should be helpful.

-- 
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.
https://bugs.launchpad.net/bugs/909607

Title:
  Values attribute support for enum types

Status in NUnit Test Framework:
  New

Bug description:
  The Values attribute should support enum types as argument.

  Example: 
  [Test]
  public void MyTest([Values(typeof(MyEnumType))]MyEnumType myEnumArgument)
  {
  ...
  }

  Maybe even having argument is unnecessary. Attribute could just work
  if applied to test method's argument of any enum type.

  Example:
  [Test]
  public void MyTest([Values]MyEnumType myEnumArgument)
  {
  ...
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunit-3.0/+bug/909607/+subscriptions


References