public void Build_InputContractsAllEqualAndNoSeasonalAdjustments_ResultsInFlatCurve() { const double flatPrice = 84.54; var curve = new MaxSmoothnessSplineCurveBuilder <Day>() .AddContract(Month.CreateJanuary(2019), flatPrice) .AddContract(Month.CreateFebruary(2019), flatPrice) .AddContract(Month.CreateMarch(2019), flatPrice) .AddContract(Quarter.CreateQuarter2(2019), flatPrice) .AddContract(Quarter.CreateQuarter3(2019), flatPrice) .AddContract(Season.CreateWinter(2019), flatPrice) .BuildCurve(); foreach (double price in curve.Data) { Assert.AreEqual(flatPrice, price, 1E-12); } }