public void TestBindingContextPropagation() { var context = new object(); var image = new Image(); image.BindingContext = context; var source = new MockImageSource(); image.Source = source; Assert.AreSame(context, source.BindingContext); image = new Image(); source = new MockImageSource(); image.Source = source; image.BindingContext = context; Assert.AreSame(context, source.BindingContext); }
public void TestBindingContextPropagation () { var context = new object (); var image = new Image (); image.BindingContext = context; var source = new MockImageSource (); image.Source = source; Assert.AreSame (context, source.BindingContext); image = new Image (); source = new MockImageSource (); image.Source = source; image.BindingContext = context; Assert.AreSame (context, source.BindingContext); }