public void TestRecordEdgeCreationForUndo01() { GraphController graphController = new GraphController(null); UndoRedoRecorder urr = new UndoRedoRecorder(graphController); Assert.Throws<ArgumentException>(() => { urr.BeginGroup(); urr.RecordEdgeCreationForUndo(null); }); }
public void TestRecordEdgeCreationForUndo00() { GraphController graphController = new GraphController(null); UndoRedoRecorder urr = new UndoRedoRecorder(graphController); EdgeController edgeController = new EdgeController(graphController); List<IVisualEdge> edgeList = new List<IVisualEdge>(); VisualEdge edge = new VisualEdge(edgeController, EdgeType.ExplicitConnection); edgeList.Add(edge); Assert.Throws<InvalidOperationException>(() => { urr.RecordEdgeCreationForUndo(edgeList); }); }