public void DeleteFirstControlPointAndRotationCommand()
        {
            ICommand addCommand = new AddPointAndRotationCommand(this.RibbonSketchObject, new Vector3(0, 0, 0), Quaternion.Euler(45, 0, 0));

            Invoker.ExecuteCommand(addCommand);

            ICommand deleteCommand = new DeletePointAndRotationCommand(this.RibbonSketchObject);

            Invoker.ExecuteCommand(deleteCommand);

            Assert.AreEqual(null, RibbonSketchObject.GetComponent <MeshFilter>().sharedMesh);
            Assert.IsTrue(SketchWorld.ActiveSketchWorld.IsObjectDeleted(this.RibbonSketchObject));
        }
        public void DeleteControlPointAndRotationCommandUndo()
        {
            ICommand addCommand = new AddPointAndRotationCommand(this.RibbonSketchObject, new Vector3(0, 0, 0), Quaternion.Euler(45, 0, 0));

            Invoker.ExecuteCommand(addCommand);

            addCommand = new AddPointAndRotationCommand(this.RibbonSketchObject, new Vector3(1, 0, 0), Quaternion.Euler(-45, 0, 0));
            Invoker.ExecuteCommand(addCommand);

            ICommand deleteCommand = new DeletePointAndRotationCommand(this.RibbonSketchObject);

            Invoker.ExecuteCommand(deleteCommand);
            Invoker.Undo();

            Assert.AreEqual(6, RibbonSketchObject.GetComponent <MeshFilter>().sharedMesh.vertices.Length);
        }