nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02410
[Bug 909607] [NEW] Values attribute support for enum types
Public bug reported:
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)
{
...
}
** Affects: nunit-3.0
Importance: Undecided
Status: New
** Tags: attribute feature
--
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
Follow ups
References