Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
		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);
		}