public void ItShouldCreateNonDefaultBinding() { _propertyBindingEnumerator = new PropertyBindingEnumerator(_testSourceEntity.TestControlWithDefaultBindingProperty, _testTargetEntity); _propertyBindingEnumerator.Should().Contain( x => x.SourceProperty.Source == _testSourceEntity.TestControlWithDefaultBindingProperty && x.SourceProperty.Name == "List" && x.TargetProperty.Name == nameof(TestTargetEntity.TestControlWithDefaultBindingPropertyList)); }
public void ItShouldCreateBindingWithTestControlTextProperty() { _propertyBindingEnumerator = new PropertyBindingEnumerator(_testSourceEntity.TestControl, _testTargetEntity); _propertyBindingEnumerator.Should().Contain( x => x.SourceProperty.Source == _testSourceEntity.TestControl && x.SourceProperty.Name == "Text" && x.TargetProperty.Name == nameof(TestTargetEntity.TestControlText)); }