Пример #1
0
        public void GetValue()
        {
            var body = new RealBodyIndicator(_series);

            TaTestsUtils.AssertDecimalEquals(body.GetValue(0), 8);
            TaTestsUtils.AssertDecimalEquals(body.GetValue(1), 3);
            TaTestsUtils.AssertDecimalEquals(body.GetValue(2), 0);
            TaTestsUtils.AssertDecimalEquals(body.GetValue(3), -4);
            TaTestsUtils.AssertDecimalEquals(body.GetValue(4), 1);
        }
Пример #2
0
        public void getValue()
        {
            RealBodyIndicator body = new RealBodyIndicator(series);

            Assert.AreEqual(body.GetValue(0), 8);
            Assert.AreEqual(body.GetValue(1), 3);
            Assert.AreEqual(body.GetValue(2), 0);
            Assert.AreEqual(body.GetValue(3), -4);
            Assert.AreEqual(body.GetValue(4), 1);
        }