private void TestBB(float[] data, BBData expected, int period, float sigmaWidth) { BBData res = _testObj.Calculate(data, period, sigmaWidth); res.SMA.ShouldBe(expected.SMA, 0.0001f); res.BBL.ShouldBe(expected.BBL, 0.0001f); res.BBH.ShouldBe(expected.BBH, 0.0001f); }