示例#1
0
        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);
        }
示例#3
0
 /// <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);
 }
示例#4
0
  /// <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);
 }