Exemple #1
0
        public void Create__HasDefaultValues()
        {
            StatATR testObj = new StatATR("");

            testObj.StatParams.Get(StatATRParams.Period).As <int>().ShouldBeGreaterThan(0);
            testObj.BackBufferLength.ShouldBe(testObj.StatParams.Get(StatSMAParams.Period).As <int>());
        }
Exemple #2
0
        public void Create_ParamsSet__CorrectBackBufferLength()
        {
            const int periodValue = 125;
            StatATR   testObj     = new StatATR("");

            testObj.StatParams.Set(StatATRParams.Period, periodValue);
            testObj.BackBufferLength.ShouldBe(periodValue);
        }