namespace XFEExtension.NetCore.XUnit.Attributes; /// /// 为测试类或测试方法附加结构化的名称和值元数据。 /// /// 特征名称。 /// 特征值。 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)] public sealed class TraitAttribute(string name, string value) : Attribute { /// /// 获取特征名称。 /// public string Name { get; } = name; /// /// 获取特征值。 /// public string Value { get; } = value; }