public void testStdDevPipeSingle() { var _Pipe = new StdDevPipe(new List<Double>() { 505.0 }); while (_Pipe.MoveNext()) { var s = _Pipe.Current; } Assert.AreEqual( 0.0, _Pipe.SideEffect1); Assert.AreEqual(505.0, _Pipe.SideEffect2); }
public void testStdDevPipe() { var _Pipe = new StdDevPipe(new List<Double>() { 505.0, 500.0, 495.0, 505.0 }); while (_Pipe.MoveNext()) { var s = _Pipe.Current; } Assert.AreEqual( 22.92, Math.Round(_Pipe.SideEffect1, 2)); Assert.AreEqual(501.25, _Pipe.SideEffect2); }
public void testStdDevPipe() { var _Pipe = new StdDevPipe(new List <Double>() { 505.0, 500.0, 495.0, 505.0 }); while (_Pipe.MoveNext()) { var s = _Pipe.Current; } Assert.AreEqual(22.92, Math.Round(_Pipe.SideEffect1, 2)); Assert.AreEqual(501.25, _Pipe.SideEffect2); }
public void testStdDevPipeSingle() { var _Pipe = new StdDevPipe(new List <Double>() { 505.0 }); while (_Pipe.MoveNext()) { var s = _Pipe.Current; } Assert.AreEqual(0.0, _Pipe.SideEffect1); Assert.AreEqual(505.0, _Pipe.SideEffect2); }