public void Returns_interpolated_durations_for_inexact_percentiles(double percentile, double expectedDuration)
        {
            var dp = new DurationPercentiles(new double[] { 1, 2, 4, 10, 100 });

            Assert.Equal(expectedDuration, dp.DurationAtPercentile(percentile), new DoubleEpsilonComparer());
        }
        public void Returns_exact_durations_for_exact_percentiles_2(double percentile, double expectedDuration)
        {
            var dp = new DurationPercentiles(new double[] { 1, 3, 5, 6, 8 });

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