You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AutoFixture has default specimens for various well-known types, and also has some supplemental specimens.
Example: RandomDateTimeSequenceGenerator is the default DateTime generator, which generates a DateTime +/- two years from the current date. There is also StrictlyMonotonicallyIncreasingDateTimeGenerator and CurrentDateTimeGenerator.
However, most of the time, what I want to be able to say is something like:
It would be great if there was better interoperability such that specimen building didn't require so much Customizations.Add ceremony.
Traditionally, Mark has suggested domain modeling to avoid such problems, but the bottom line is its sometimes convenient just to easily communicate some intent without a ton of ceremony. Is the test perfect? No. But does Jimmy Page keep on riffing when he misses a chord? Yes!
This discussion was converted from issue #1180 on December 22, 2020 09:05.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
AutoFixture has default specimens for various well-known types, and also has some supplemental specimens.
Example:
RandomDateTimeSequenceGenerator
is the defaultDateTime
generator, which generates aDateTime
+/- two years from the current date. There is alsoStrictlyMonotonicallyIncreasingDateTimeGenerator
andCurrentDateTimeGenerator
.However, most of the time, what I want to be able to say is something like:
It would be great if there was better interoperability such that specimen building didn't require so much
Customizations.Add
ceremony.Traditionally, Mark has suggested domain modeling to avoid such problems, but the bottom line is its sometimes convenient just to easily communicate some intent without a ton of ceremony. Is the test perfect? No. But does Jimmy Page keep on riffing when he misses a chord? Yes!
Beta Was this translation helpful? Give feedback.
All reactions