public void EnumeratesAsExpected() { var window = new RollingWindow<int>(3) { 0, 1, 2 }; var inOrder = window.ToList(); Assert.AreEqual(2, inOrder[0]); Assert.AreEqual(1, inOrder[1]); Assert.AreEqual(0, inOrder[2]); }
public void EnumeratesAsExpected() { var window = new RollingWindow <int>(3) { 0, 1, 2 }; var inOrder = window.ToList(); Assert.AreEqual(2, inOrder[0]); Assert.AreEqual(1, inOrder[1]); Assert.AreEqual(0, inOrder[2]); }