示例#1
0
        public void TestThatFindRootProcessWorks()
        {
            PrepareUndoManagerForTest();
            UndoManager undoManager = new UndoManager(this);

            undoManager.AddUndoChange(new Change("IntProperty", 0, 5, FindRootProcess, null));

            Change change = undoManager.UndoStack.Peek();

            Assert.Equal(TestPropClass, change.FindRootProcess(change.FindRootProcessArgs));
        }
示例#2
0
 private object GetChangeRoot(Change change)
 {
     return(change.FindRootProcess != null?change.FindRootProcess(change.FindRootProcessArgs) : change.Root);
 }