public void ClearUndo() { var target = new UndoRedoList <int, List <int> > { 100, 200, 300 }; Assert.IsTrue(target.CanUndo); target.ClearUndo(); Assert.IsFalse(target.CanUndo); }