Replies: 1 comment 1 reply
-
Is this under any consideration to add to AutoFixture? I would love to use that! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Frameworks like GenFu and ObjectHydrator have handy ways to create "constrained values".
It would be nice if AutoFixture had ways to simplify the value factory to a
With
expression (added in AutoFixture 4.6.0):Example usage:
The advantage is its:
Usually, we want collections built off the following one or more combos:
Some design considerations:
ElementBuilder<T>
. This prevents running out of unique strings or objects across parallel tests. TheElementBuilder<T>
can then be disposed of when the test completes, and other tests have no knowledge of uniqueness.Beta Was this translation helpful? Give feedback.
All reactions