FlexTradeUKLtd / jfixture

JFixture is an open source library based on the popular .NET library, AutoFixture
MIT License
105 stars 22 forks source link

Reorder enum generation #15

Closed richkeenan closed 9 years ago

richkeenan commented 9 years ago

Currently enums values are generated sequentially in order of their definition

To be consistent with the way JFixture generates numbers it'll be a good idea to reorder enum values so developers don't rely on the result always being the same. It shouldn't randomly pick values to return to minimise duplicate results so I'd suggest creating a circular buffer of shuffled enums and returning values off of that - although I'm not too fussed about the implementation