Exemplo n.º 1
0
        public void RandomizerTest2()
        {
            // Test needs to run in parallel to RandomizerTest
            // Checks that Parallel test runs don't share randomizer seeds

            for (int i = 0; i < 10; i++)
            {
                var randomizedObject = new
                {
                    String   = PseudoRandom.String(),
                    Int      = PseudoRandom.Int(),
                    DateTime = PseudoRandom.DateTime()
                };

                DiskAssert.Matches(randomizedObject, $"RandomizedObj_{i}");

                Thread.Sleep(1000);
            }
        }