public override PropertyTreeMetaObject Process(PropertyTreeBinderImpl parent, PropertyTreeMetaObject target, PropertyTreeNavigator self, NodeList children) { foreach (var child in children.Rest()) { parent._errors.BindUnmatchedProperty(child.QualifiedName, target.ComponentType, child.FileLocation); } return(target); }
public void ImplicitDirective_should_not_try_indexer_properties() { var props = new C(); var target = PropertyTreeMetaObject.Create(props); PropertyTreeBinderImpl.ImplicitDirective(target, "source"); string text; Assert.False(props._values.TryGetValue("source", out text)); }