Пример #1
0
        private void AssertPropertyFilledWithDistribution(double actualValue, IContinuousDistribution distribution)
        {
            var random        = new Random(seed);
            var sequenceStart = new[] { distribution.Generate(random), distribution.Generate(random), distribution.Generate(random), distribution.Generate(random), distribution.Generate(random) };

            random = new Random(seed);
            random.NextDouble();
            var sequence = sequenceStart.Concat(new[] { distribution.Generate(random), distribution.Generate(random), distribution.Generate(random), distribution.Generate(random), distribution.Generate(random) });

            Assert.That(sequence, Does.Contain(actualValue));
        }