public void When_constructed_with_property_expression_then_property_is_set_to_default_property() { var vm = new OrderViewModel(); var view = new OrderView(); var definition = new ValueBinderDefinition<OrderViewModel>(p => p.FirstName); definition.Create(view, vm); Assert.AreEqual(TextBox.TextProperty, definition.Property); }
public void When_create_is_invoked_then_binder_is_created() { var definition = new ValueBinderDefinition<OrderViewModel>(p => p.FirstName); var vm = new OrderViewModel(); var view = new OrderView(); var binder = definition.Create(view, vm); Assert.IsNotNull(binder); }