← Back to team overview

nunit-core team mailing list archive

[Bug 1023084] [NEW] Add Enum support to RandomAttribute

 

Public bug reported:

Add support to the Random Attribute to select a random Enum Value from
an enumeration

[Test]
public void Test([Random(numberOfRandomValues)] MyEnum value)
{
    //Random generates a Random Value from MyEnum's Values
}

** Affects: nunit-3.0
     Importance: Undecided
         Status: New

** Affects: nunitlite
     Importance: Undecided
         Status: New

** Also affects: nunit-3.0
   Importance: Undecided
       Status: New

-- 
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/1023084

Title:
  Add Enum support to RandomAttribute

Status in NUnit Test Framework:
  New
Status in NUnitLite Testing Framework:
  New

Bug description:
  Add support to the Random Attribute to select a random Enum Value from
  an enumeration

  [Test]
  public void Test([Random(numberOfRandomValues)] MyEnum value)
  {
      //Random generates a Random Value from MyEnum's Values
  }

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


Follow ups

References