Skip to content

Allow option on RandomAttribute to produce distinct values #2144

Closed
@NUnitTester

Description

@NUnitTester

RandomAttribute produces not distinct values. So NUnit Adapter 3.7.0.0 tells errors that test with the same name does already exists.

public void MyTest([Random(0, 9, 7)] int x)

The range is small in this case, so it is nearly sure to get the same value twice.
I expect the values should be distinct. If the range is too small the number of random numbers to produce shopuld be reduced.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions