public void TestClear() { _testStack.Clear(); Assert.IsTrue(_hasItemsChangedFiredCount == 0); _testStack.Push(1); _hasItemsChangedFiredCount = 0; _testStack.Clear(); Assert.IsTrue(_hasItemsChangedFiredCount == 1); }
public async Task StartUptimeAsync() { _stack.Clear(); CurrentUptime = new Uptime(); await CurrentUptime.SaveAsync(DbContext); }
public void PushAction(IAction action) { undoStack.Push(action); redoStack.Clear(); }