public void test_unbound_property_result_in_no_bindings()
        {
            var testObject = new BindingsFactory();


            var bindings = testObject.CreateObjectBindings(new TestClassWithUnboundProperty());

            Assert.Equal(0, bindings.Length);
        }
        public void test_can_bind_to_null_property()
        {
            var testObject = new BindingsFactory();


            var bindings = testObject.CreateObjectBindings(new TestClassWithNullProperty());

            Assert.Equal(1, bindings.Length);
            Assert.NotNull(bindings[0]);
        }
        public void test_CreateObjectBindings()
        {
            var obj = new TestClass()
            {
                X      = 22,
                Y      = 3.3f,
                S      = "Hi",
                Nested = new NestedTestClass()
                {
                    X = 15
                }
            };

            var testObject = new BindingsFactory();

            var bindings = testObject.CreateObjectBindings(obj);

            Assert.Equal(4, bindings.Length);
            Assert.Equal("X", bindings[0].PropertyName);
            Assert.Equal("Y", bindings[1].PropertyName);
            Assert.Equal("S", bindings[2].PropertyName);
            Assert.Equal("Nested", bindings[3].PropertyName);
        }