nickdodd79 / AutoBogus

A C# library complementing the Bogus generator by adding auto creation and population capabilities.
MIT License
431 stars 50 forks source link

Generate random combination of "Flags" enum #60

Open wakuflair opened 3 years ago

wakuflair commented 3 years ago

First thanks for this very handful library.

I noticed AutoBogus not generating combination of enum types with the "Flags" attribute, only individual enum value. Is there something magic I don't know?

nickdodd79 commented 3 years ago

Hey @wakuflair

The usage of enum flags is not current implemented - AutoBogus simply asks Bogus for a enum value and assigns it.

I don't think it would be too hard to get something in place for it. I'll see what I can do.

Nick.