Beispiel #1
0
		public void DPWithDefaultValueDO_Broken_UseTargetNull ()
		{
			var o = new DPWithDefaultValueDependencyObject { };
			BindingOperations.SetBinding (o, DPWithDefaultValueDependencyObject.DefaultValueProperty, new Binding { TargetNullValue = "Foo" });
			Assert.AreEqual ("Foo", o.GetValue (DPWithDefaultValueDependencyObject.DefaultValueProperty), "#1");
		}
Beispiel #2
0
		public void DPWithDefaultValueDO_Broken_DoNotUseFallback ()
		{
			var o = new DPWithDefaultValueDependencyObject { };
			BindingOperations.SetBinding (o, DPWithDefaultValueDependencyObject.DefaultValueProperty, new Binding { FallbackValue = "Foo" });
			Assert.AreEqual (DPWithDefaultValueDependencyObject.Value, o.GetValue (DPWithDefaultValueDependencyObject.DefaultValueProperty), "#1");
		}