Values attribute support for enum types

Bug #909607 reported by Oleg Deribas
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
NUnit Framework
Triaged
Medium
Unassigned

Bug Description

[Issue now tracked at https://github.com/nunit/nunit-framework/issues/27]

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)
{
...
}

Revision history for this message
Rechenelf (matklaus) wrote :

Very nice idea. Think, should be helpful.

Changed in nunit-3.0:
status: New → Triaged
importance: Undecided → Medium
tags: added: framework
description: updated
tags: added: github
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.