public void TestRecordRuntimeStatesForUndo01() { GraphController graphController = new GraphController(null); UndoRedoRecorder urr = new UndoRedoRecorder(graphController); Assert.Throws<ArgumentNullException>(() => { urr.BeginGroup(); urr.RecordRuntimeStatesForUndo(null); }); }
public void TestRecordRuntimeStatesForUndo00() { GraphController graphController = new GraphController(null); UndoRedoRecorder urr = new UndoRedoRecorder(graphController); RuntimeStates runtimeStates = new RuntimeStates(); Assert.Throws<InvalidOperationException>(() => { urr.RecordRuntimeStatesForUndo(runtimeStates); }); }