.NET unit test helper libraries - Source code for "SparkyTestHelper" nuget packages: SparkyTestHelpers, SparkyTestHelpers.AppSettings, SparkyTestHelpers.AutoMapper, SparkyTestHelpers.Mapping, SparkyTestHelpers.Moq, SparkyTestHelpers.Xml
4
stars
5
forks
source link
Populater.CreateRandom<T>() creates duplicate instances #5
Closed
Samurai303 closed 5 years ago
When calling Populater.CreateRandom() for two of the same object, the properties values are the same.
Take a simple class
Then the following code returns the same values for both instances
It seems to be down to the RandomValueProvider creating it's own instance of Random() with the same seed.