Пример #1
0
        public void EditValuePropertyOperation_Test()
        {
            var vertex   = new DataVertex();
            var property = new PropertyViewmodel(1, "key", "value", vertex);

            vertex.AddProperty(property);
            var evpo = new EditValuePropertyOperation(property, "value changed");

            evpo.Do();

            Assert.AreEqual(property.Value, "value changed");

            evpo.UnDo();

            Assert.AreEqual(property.Value, "value");
        }
Пример #2
0
        public void EditValuePropertyOperation_Test()
        {
            var vertex = new DataVertex();
            var property = new PropertyViewmodel(1, "key", "value", vertex);
            vertex.AddProperty(property);
            var evpo = new EditValuePropertyOperation(property, "value changed");

            evpo.Do();

            Assert.AreEqual(property.Value, "value changed");

            evpo.UnDo();

            Assert.AreEqual(property.Value, "value");
        }