vendredi 25 septembre 2015

How to get AutoFixture create an integer that is >0, and not another number?

I want AutoFixture generate two integers, and for the second number, I don't want it to be 0, or the previous generated number. Is there a way to tell AutoFixture to honor that "requirement".

Looking at RandomNumericSequenceGenerator, I looks like the lower limit is 1, so I might not have to specify the first requirement. Next, I was looking at the "seeding" option, but as indicated in this answer, it won't be used for a number, by default.

Is there something I'm overlooking here?




Aucun commentaire:

Enregistrer un commentaire