예제 #1
0
        public void CreateChangePropertyEditTest()
        {
            Element element = new Element();
            string  name2   = "Name 2";

            element.Name = "Name 1";
            ce.AddEdit(EditFactory.instance.CreateChangePropertyEdit(element, "Name", name2));
            element.Name = name2;
            ce.End();
            ce.Undo();
            Assert.AreEqual(element.Name, "Name 1");
            ce.Redo();
            Assert.AreEqual(element.Name, "Name 2");
        }