public void AttachedPropOnCtor_TreeValidator(object o) { Element10 root = (Element10)o; ColorElement color; string attachedString; color = (ColorElement)root.Element0; Assert.AreEqual("Blue", color.ColorName); attachedString = APP.GetFoo(color); Assert.AreEqual("FooString", attachedString); color = (ColorElement)root.Element1; Assert.AreEqual("Red", color.ColorName); attachedString = APP.GetFoo(color); Assert.AreEqual("RedElement", attachedString); }
public void ValidateAPPFoo(object o) { Assert.AreEqual("Hello", APP.GetFoo(o)); }