public void SetBinding_PropertyIsOfTypeBinding_DoesNotSetValue() { var target = new TypeWithBindingProperty(); var property = TypeWithBindingProperty.TheBinding; var binding = new Binding(); BindingOperations.SetBinding(target, property, binding); Assert.IsNull(target.GetValue(property)); }
public void SetBinding_PropertyIsOfTypeBinding_DoesNotSetValue () { var target = new TypeWithBindingProperty (); var property = TypeWithBindingProperty.TheBinding; var binding = new Binding (); BindingOperations.SetBinding (target, property, binding); Assert.IsNull (target.GetValue (property)); }