public void Percentile_over_maximum_is_1(double percentile, double expectedDuration)
        {
            var dp = new DurationPercentiles(new double[] { 1, 3, 5, 6, 8 });

            Assert.Equal(expectedDuration, dp.PercentileAtDuration(percentile));
        }
        public void Returns_exact_percentiles_for_exact_durations(double duration, double expectedPercentile)
        {
            var dp = new DurationPercentiles(new double[] { 3, 1, 2 });

            Assert.Equal(expectedPercentile, dp.PercentileAtDuration(duration));
        }
        public void Returns_exact_percentiles_for_inexact_durations(double percentile, double expectedDuration)
        {
            var dp = new DurationPercentiles(new double[] { 1, 3, 5, 6, 8 });

            Assert.Equal(expectedDuration, dp.PercentileAtDuration(percentile));
        }