public void Configure_DefaultValues_ConfigContainsDefaults() { //Assign var attr = new StubInfoAttribute(); var config = new InfoConfiguration(); var propertyInfo = typeof(StubItem).GetProperty("X"); //Act attr.Configure(propertyInfo, config); //Assert Assert.AreEqual(propertyInfo, config.PropertyInfo); }
public void Configure_DefaultValues_ConfigContainsDefaults() { //Assign var attr = new StubInfoAttribute(); var config = new InfoConfiguration(); var propertyInfo = Substitute.For <PropertyInfo>(); //Act attr.Configure(propertyInfo, config); //Assert Assert.AreEqual(propertyInfo, config.PropertyInfo); }
/// <summary> /// Configures the specified property info. /// </summary> /// <param name="propertyInfo">The property info.</param> /// <param name="config">The config.</param> public void Configure(PropertyInfo propertyInfo, InfoConfiguration config) { base.Configure(propertyInfo, config); }