public void TransformBindingCircularSortTest2() { var container = new DisplayObject(); var a = new Node(); var b = new Node(); var c = new Node(); container.Children.Add(a); container.Children.Add(b); container.Children.Add(c); container.Bind(a, c); container.Bind(b, c); container.Bind(c, a); container.Update(TimeSpan.Zero); }
public void TransformBindingSortTest() { var container = new DisplayObject(); var a = new Node(); var b = new Node(); var c = new Node(); container.Children.Add(a); container.Children.Add(b); container.Children.Add(c); container.Bind(a, b); container.Bind(b, c); container.Update(TimeSpan.Zero); Assert.AreEqual(c, container.sortedTransformBindings[0].Target); Assert.AreEqual(b, container.sortedTransformBindings[1].Target); }