public void MemberAttribute_WhenOptionalSetWithAllowedValuesAndOptionalArgNameNotSet_HasOptionalArgumentIsTrue() { NArgAttribute nattr = (NArgAttribute)CustomAttributeHelper.GetCustomPropertiesFromMember <Sample, NArgAttribute>("_limitedValues"); Assert.That(nattr.HasOptionalArgument, Is.True); }
public GoodInheritFromNArgAttribute(NArgAttribute attr) : base(attr) { }
public MemberAttribute(NArgAttribute attr, MemberInfo memberInfo) : base(attr) { _memberInfo = memberInfo; }