public void UndoService_ResetUndoStates_ClearsUndoStates() { //arrange UndoService.ResetUndoStates(); bool exceptionThrown = false; //act try { var state = UndoService.GetWindowPreviousState; } catch (ArgumentException ex) { exceptionThrown = true; Assert.IsNotNull(ex); } //assert Assert.IsTrue(exceptionThrown); }
public void TestInitialize() { UndoService.ResetUndoStates(); UndoService.CurrentWindow = window; }