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>()); }
public void Create_ParamsSet__CorrectBackBufferLength() { const int periodValue = 125; StatSMA testObj = new StatSMA(""); testObj.StatParams.Set(StatSMAParams.Period, periodValue); testObj.BackBufferLength.ShouldBe(periodValue); }