コード例 #1
0
        public void Create__HasDefaultValues()
        {
            StatSMA testObj = new StatSMA("");

            testObj.StatParams.Get(StatSMAParams.Period).As <int>().ShouldBeGreaterThan(0);
            testObj.BackBufferLength.ShouldBe(testObj.StatParams.Get(StatSMAParams.Period).As <int>());
        }
コード例 #2
0
        public void Create_ParamsSet__CorrectBackBufferLength()
        {
            const int periodValue = 125;
            StatSMA   testObj     = new StatSMA("");

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