public void GetAverageTest4() { RollingAverage target = new RollingAverage(); double expected = 0F; double actual; actual = target.GetAverage(); Assert.AreEqual(expected, actual); }
public void GetAverageTest1() { RollingAverage target = new RollingAverage(); double expected = 2F; double actual; target.Add(1); target.Add(2); target.Add(3); actual = target.GetAverage(); Assert.AreEqual(expected, actual); }
public void GetAverageTest3() { RollingAverage target = new RollingAverage(16); double expected = 100F; double actual; for (int i = 0; i < 10000; i++) { target.Add(100F); } actual = target.GetAverage(); Assert.AreEqual(expected, actual); }