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)); }
private object GetChangeRoot(Change change) { return(change.FindRootProcess != null?change.FindRootProcess(change.FindRootProcessArgs) : change.Root); }