public void Constructor_sets_PropertySources() { var propertyNames = new[] { "FirstProperty", "SecondProperty" }; var attribute = new PropertySourceAttribute(propertyNames); Assert.Equal(propertyNames, attribute.PropertySources); }
public void InheritAttributes(bool value) { var attribute = new PropertySourceAttribute { InheritAttributes = value }; Assert.Equal(value, attribute.InheritAttributes); }
public void PropertySources() { var propertyNames = new[] { "FirstProperty", "SecondProperty" }; var attribute = new PropertySourceAttribute { PropertySources = propertyNames }; Assert.Equal(propertyNames, attribute.PropertySources); }