Ejemplo n.º 1
0
        public void TestRecordNodeDeletionForUndo01()
        {
            GraphController  graphController = new GraphController(null);
            UndoRedoRecorder urr             = new UndoRedoRecorder(graphController);

            urr.BeginGroup();
            urr.RecordNodeDeletionForUndo(null);
            Assert.AreEqual(0, urr.ActionCount);
        }
Ejemplo n.º 2
0
        public void TestRecordNodeModificationForUndo02()
        {
            GraphController  graphController = new GraphController(null);
            UndoRedoRecorder urr             = new UndoRedoRecorder(graphController);

            urr.BeginGroup();
            urr.RecordNodeModificationForUndo(new List <IVisualNode>());
            Assert.AreEqual(0, urr.ActionCount);
        }
Ejemplo n.º 3
0
        public void TestRecordEdgeCreationForUndo02()
        {
            GraphController  graphController = new GraphController(null);
            UndoRedoRecorder urr             = new UndoRedoRecorder(graphController);

            Assert.Throws <ArgumentException>(() =>
            {
                urr.BeginGroup();
                urr.RecordEdgeCreationForUndo(new List <IVisualEdge>());
            });
        }
Ejemplo n.º 4
0
        public void TestRecordRuntimeStatesForUndo01()
        {
            GraphController  graphController = new GraphController(null);
            UndoRedoRecorder urr             = new UndoRedoRecorder(graphController);

            Assert.Throws <ArgumentNullException>(() =>
            {
                urr.BeginGroup();
                urr.RecordRuntimeStatesForUndo(null);
            });
        }
Ejemplo n.º 5
0
        public void TestRecordEdgeModificationForUndo01()
        {
            GraphController  graphController = new GraphController(null);
            UndoRedoRecorder urr             = new UndoRedoRecorder(graphController);

            Assert.Throws <ArgumentException>(() =>
            {
                urr.BeginGroup();
                urr.RecordEdgeModificationForUndo(null);
            });
        }