Esempio n. 1
0
        public void AttachedPropertiesAreTransferredFromTheBackpack()
        {
            var platformView = new MockPlatformView();

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

            var view = platformView.ToView();

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