public void IndexOfTest() { RollingWindow <int> rollingWindow = new RollingWindow <int>(5); for (int i = 0; i < rollingWindow.WindowSize; i++) { rollingWindow.Add(i); } for (int i = 0; i < rollingWindow.WindowSize; i++) { Assert.AreEqual(i, rollingWindow.IndexOf(i)); } }
public void IndexOfTest() { RollingWindow<int> rollingWindow = new RollingWindow<int>(5); for (int i = 0; i < rollingWindow.WindowSize; i++) rollingWindow.Add(i); for (int i = 0; i < rollingWindow.WindowSize; i++) Assert.AreEqual(i, rollingWindow.IndexOf(i)); }