String Calculator kata with Autofixture exercise 5 by Mark Seemann
This is the fifth post in a series of posts about the String Calculator kata done with AutoFixture.
This screencast implements the requirement of the kata's exercise 5.
If you liked this screencast, you may also like my Pluralsight course Outside-In Test-Driven Development.
Wish to comment?
You can add a comment to this post by sending me a pull request. Alternatively, you can discuss this post on Twitter or somewhere else with a permalink. Ping me with the link, and I may respond.
Published: Wednesday, 13 February 2013 12:13:01 UTC
Comments
It seems you assume that the int generator always returns non-negative numbers.
Is this true and by design? why?
Thanks
In AutoFixture 3, numbers are random.
In AutoFixture 2.2+, all numbers are generated by a strictly monotonically increasing sequence.
In AutoFixture prior to 2.2, numbers were also generated as a rising sequence, but one sequence per number type.
Common for all is that they are 'small, positive integers'.