public void ConvertedDPToInt_ConverterOnDPClass() { bool created = false; var source = new ConvertedObjectDPClassConverter { }; 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_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 ConvertedDPToInt_ConverterOnDPClass() { bool created = false; var source = new ConvertedObjectDPClassConverter { }; 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_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"); }