Create a custom FastTest attribute that inherits from TimeoutAttribute. This attribute would then apply its own category naming convention. Something like this should work
public class FastTestAttribyte :TimeoutAttribute { protected string categoryName; public FastTestAttribyte (int timeout):base(timeout) { categoryName = "FastTest"; } public string Name { get return categoryName; } }
Edit
It will work if you decompile an attribute, this is what it does
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly, AllowMultiple=true, Inherited=true)] public class CategoryAttribute : Attribute {
I think Nunit will use reflection for the Attribute attribute's Name property.
source share