public void ConvertedDPToInt_ConverterOnDPProperty()
        {
            bool created = false;
            var  source  = new ConvertedObjectDPWithConverter {
            };
            var target   = new IntDPNoConverter {
                IntDP = 5
            };

            HookedConverter.ConstructorFunc = () => created = true;
            BindingOperations.SetBinding(target, IntDPNoConverter.IntDPProperty, new Binding("ConvertedObject")
            {
                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 ConvertedDPToInt_ConverterOnDPProperty()
		{
			bool created = false;
			var source = new ConvertedObjectDPWithConverter { };
			var target = new IntDPNoConverter { IntDP = 5 };

			HookedConverter.ConstructorFunc = () => created = true;
			BindingOperations.SetBinding(target, IntDPNoConverter.IntDPProperty, new Binding("ConvertedObject") { 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");
		}