public void GetIsRedoEnabled0()
 {
     var cl = new TstClient();
     var a = cl.GetRoot<Root>().AItems.First();
     a.Value = 10;
     cl.Undo(a.Uid);
     Assert.AreEqual(true, cl.GetIsRedoEnabled(a.Uid));
     cl.Redo(a.Uid);
     Assert.AreEqual(false, cl.GetIsRedoEnabled(a.Uid));
 }
        public void GetIsRedoEnabled0()
        {
            var cl = new TstClient();
            var a  = cl.GetRoot <Root>().AItems.First();

            a.Value = 10;
            cl.Undo(a.Uid);
            Assert.AreEqual(true, cl.GetIsRedoEnabled(a.Uid));
            cl.Redo(a.Uid);
            Assert.AreEqual(false, cl.GetIsRedoEnabled(a.Uid));
        }
 public void GetRefIsRedoEnabledChanged()
 {
     var cl = new TstClient();
     var root = cl.GetRoot<Root>();
     root.Revert();
     var refObject = root.RefItems.First();
     var a = refObject.Ref;
     Assert.AreEqual(false, cl.GetIsRedoEnabled(root));
     Assert.AreEqual(false, cl.GetIsRedoEnabled(refObject));
     a.Value = 9;
     cl.Undo(a);
     Assert.AreEqual(false, cl.GetIsRedoEnabled(refObject));
     Assert.AreEqual(true, cl.GetIsRedoEnabled(root));
 }
 public void GetParentIsRedoEnabledChanged()
 {
     var cl = new TstClient();
     var root = cl.GetRoot<Root>();
     root.Revert();
     var prnt = root.ParentItems.First();
     var chld = prnt.Children.First();
     Assert.AreEqual(false, cl.GetIsRedoEnabled(root));
     Assert.AreEqual(false, cl.GetIsRedoEnabled(prnt));
     chld.Value = 9.9;
     cl.Undo(chld);
     Assert.AreEqual(true, cl.GetIsRedoEnabled(prnt));
     Assert.AreEqual(true, cl.GetIsRedoEnabled(root));
 }
        public void GetRefIsRedoEnabledChanged()
        {
            var cl   = new TstClient();
            var root = cl.GetRoot <Root>();

            root.Revert();
            var refObject = root.RefItems.First();
            var a         = refObject.Ref;

            Assert.AreEqual(false, cl.GetIsRedoEnabled(root));
            Assert.AreEqual(false, cl.GetIsRedoEnabled(refObject));
            a.Value = 9;
            cl.Undo(a);
            Assert.AreEqual(false, cl.GetIsRedoEnabled(refObject));
            Assert.AreEqual(true, cl.GetIsRedoEnabled(root));
        }
        public void GetParentIsRedoEnabledChanged()
        {
            var cl   = new TstClient();
            var root = cl.GetRoot <Root>();

            root.Revert();
            var prnt = root.ParentItems.First();
            var chld = prnt.Children.First();

            Assert.AreEqual(false, cl.GetIsRedoEnabled(root));
            Assert.AreEqual(false, cl.GetIsRedoEnabled(prnt));
            chld.Value = 9.9;
            cl.Undo(chld);
            Assert.AreEqual(true, cl.GetIsRedoEnabled(prnt));
            Assert.AreEqual(true, cl.GetIsRedoEnabled(root));
        }