What strategies are people using to UnitTest code that is non-deterministic? MockRandomizer -- Trick your random number generator into generating predictable numbers (such as 0,1,2,3...) DontChangeTheCodeTest -- If you absolutely can't solve the problem, there's always this resort.
No comments:
Post a Comment