Let's say we have an enum type defined as:
enum Statuses
{
Completed,
Pending,
NotStarted,
Started
}
I'd like to make Autofixture create a value for me other than e.g. Pending.
So (assuming round-robin generation) I'd like to obtain:
Completed, NotStarted, Started, Completed, NotStarted, ...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…