public void IntToConvertedDP_ConverterOnDPClass()
        {
            // Ignore type converters on the destination DPs declaring type.
            bool created = false;
            var  source  = new IntPropNoConverter {
                IntProperty = 5
            };
            var target = new ConvertedObjectDPClassConverter {
            };

            HookedConverter.ConstructorFunc = () => created = true;
            BindingOperations.SetBinding(target, ConvertedObjectDPClassConverter.ConvertedObjectProperty, new Binding("IntProperty")
            {
                Source = source
            });
            Assert.IsFalse(created, "#1");
        }
        public void IntToConvertedDP_ConverterOnDPProperty()
        {
            // Ignore type converters on the DP the binding is attached to
            bool created = false;

            HookedConverter.ConstructorFunc = () => created = true;

            var source = new IntPropNoConverter {
                IntProperty = 5
            };
            var target = new ConvertedObjectDPWithConverter {
            };

            BindingOperations.SetBinding(target, ConvertedObjectDPWithConverter.ConvertedObjectProperty, new Binding("IntProperty")
            {
                Source = source
            });
            Assert.IsFalse(created, "#1");
        }
		public void IntToConvertedDP_ConverterOnDPClass()
		{
			// Ignore type converters on the destination DPs declaring type.
			bool created = false;
			var source = new IntPropNoConverter { IntProperty = 5 };
			var target = new ConvertedObjectDPClassConverter { };

			HookedConverter.ConstructorFunc = () => created = true;
			BindingOperations.SetBinding(target, ConvertedObjectDPClassConverter.ConvertedObjectProperty, new Binding("IntProperty") { Source = source });
			Assert.IsFalse (created, "#1");
		}
		public void IntToConvertedDP_ConverterOnDPProperty()
		{
			// Ignore type converters on the DP the binding is attached to
			bool created = false;
			HookedConverter.ConstructorFunc = () => created = true;

			var source = new IntPropNoConverter { IntProperty = 5 };
			var target = new ConvertedObjectDPWithConverter { };

			BindingOperations.SetBinding(target, ConvertedObjectDPWithConverter.ConvertedObjectProperty, new Binding("IntProperty") { Source = source });
			Assert.IsFalse(created, "#1");
		}