Exemple #1
0
        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));
        }
Exemple #2
0
		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));
		}