AutoFixture/AutoFixture — pull request #210 by dlongest (2013-11-27 05:54:46+00:00)
Title: Created RandomRangedNumberGenerator and RandomRangedNumberCustomization

This is a submission for #146 - CreateRandomRangedNumberGenerator. I worked from the two tests provided in the issue as a guide. It appeared that RandomNumericSequenceGenerator is already capable of producing random values within a given range for a type. However, RandomNumericSequenceGenerator automatically extends the range as it's exhausted. Also, RangedNumberRequests for the same type and limits should pull from the same set instead of being treated independently.

I assumed that if a given set is exhausted, it should be reset and the limits not adjusted. I came across some discussions that noted that behavior so that was the basis for this assumption.

I used both RandomNumericSequenceGenerator and RangedNumberGenerator and their unit tests as guides. I think I covered the bases, but could add more cases per test similar to the other generators. I struggled writing a test to verify proper multithreading behavior so none appears - I could never get such a test to fail. I ran the BuildRelease.ps1 script and made all the changes to arrive at no errors.

This is my first OSS submission so I hope I followed the correct procedures and this submission is close to what was envisioned. I'm open to any and all feedback that anyone would like to offer.