Example #1
0
        public void NumericDoublePool_Write_Works()
        {
            //Arrange
            var pool = new NumericDoublePool(10);

            //Act
            pool.Write(89);

            //Assert
            Assert.AreEqual(pool[0], 89);
        }
Example #2
0
 public SMACalculator(int capacity, int period) : base(capacity)
 {
     _valuePool = new NumericDoublePool(period);
     _period    = period;
 }