Esempio n. 1
0
        public void SRID_Winform_ShouldBeBindable()
        {
            var layer = new DummyLayer();
            layer.SRID = 0;

            var binding = new Binding("IntProperty", layer, "SRID");
            
            var targetComponent = new BindableComponent();
            targetComponent.DataBindings.Add(binding);

            layer.SRID = 4326;

            Assert.That(targetComponent.IntProperty, Is.EqualTo(4326),
                "Binding on Layer.SRID did not work");
        }
Esempio n. 2
0
        public void SRID_Winform_ShouldBeBindable()
        {
            var layer = new DummyLayer();

            layer.SRID = 0;

            var binding = new Binding("IntProperty", layer, "SRID");

            var targetComponent = new BindableComponent();

            targetComponent.DataBindings.Add(binding);

            layer.SRID = 4326;

            Assert.That(targetComponent.IntProperty, Is.EqualTo(4326),
                        "Binding on Layer.SRID did not work");
        }