public void Ema_SimpleValues_Calculated() { //When var result = _ma.EMA(_data, 3); // Expected data is generated by talin in python double[] expected = { 45.97626667, 45.93468333, 46.00864167, 45.92597083, 45.67523542, 45.38536771, 45.10588385, 44.71684193, 44.16462096, 44.15716048, 44.12368024, 44.23129012, 44.27509506, 44.30199753 }; var result2 = result.Select(x => Math.Round(x.Value, 8)).ToArray(); //Then Assert.Equal(expected, result2); }