public void NumericDoublePool_Write_Works() { //Arrange var pool = new NumericDoublePool(10); //Act pool.Write(89); //Assert Assert.AreEqual(pool[0], 89); }
public SMACalculator(int capacity, int period) : base(capacity) { _valuePool = new NumericDoublePool(period); _period = period; }