예제 #1
0
        public void AttachedPropertiesAreTransferredFromTheBackpack()
        {
            var nativeView = new MockNativeView();

            nativeView.SetValue(Grid.ColumnProperty, 3);
            nativeView.SetBinding(Grid.RowProperty, new Binding("foo"));

            var view = nativeView.ToView();

            view.BindingContext = new { foo = 42 };
            Assert.AreEqual(3, view.GetValue(Grid.ColumnProperty));
            Assert.AreEqual(42, view.GetValue(Grid.RowProperty));
        }