public void YNotSetGetYShouldReturnZeroValue()
        {
            var position = new RandomFromSetPosition
            {
            };

            var samplesCount = 1000;
            var samples = GetYPositionSamples(samplesCount, position);

            AssertValuesAreFromSet(samples, new[] { 0.0d });
        }
        private double[] GetXPositionSamples(int samplesCount, RandomFromSetPosition position)
        {
            var samples = new double[samplesCount];

            for (int i = 0; i < samplesCount; i++)
            {
                samples[i] = position.GetX();
            }

            return samples;
        }
        public void RandomPositionGetYShouldReturnRandomValue()
        {
            var position = new RandomFromSetPosition
            {
                YSet = new double[] { 1, 0 }
            };

            var samplesCount = 1000;
            var samples = GetYPositionSamples(samplesCount, position);

            AssertValuesAreFromSet(samples, position.YSet);
        }