Пример #1
0
        public void MemberAttribute_WhenOptionalSetWithAllowedValuesAndOptionalArgNameNotSet_HasOptionalArgumentIsTrue()
        {
            NArgAttribute nattr = (NArgAttribute)CustomAttributeHelper.GetCustomPropertiesFromMember <Sample, NArgAttribute>("_limitedValues");

            Assert.That(nattr.HasOptionalArgument, Is.True);
        }
Пример #2
0
 public GoodInheritFromNArgAttribute(NArgAttribute attr) : base(attr)
 {
 }
Пример #3
0
 public MemberAttribute(NArgAttribute attr, MemberInfo memberInfo)
     : base(attr)
 {
     _memberInfo = memberInfo;
 }