Ejemplo n.º 1
0
        public void GetTest()
        {
            var propertyAttributes = AutoMappingUtils.GetPropertyAttributes <RequiredAttribute>(typeof(TestClass));
            var propertyNames      = propertyAttributes.ToList().ConvertAll(x => x.Key.Name);

            Assert.That(propertyNames, Is.EquivalentTo(new[] { "Member1", "Member3" }));
        }