Class InfoConfiguration
상속: AbstractPropertyConfiguration
예제 #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);
        }