Life can be so simple sometimes but you just have to think about it.
I found it very cool when Sean Feldman posted this CategoryAttribute. Yeah I know the title doesn’t say everything and the post iskinda short but very sweet to me. More DRYness to play with.
Now let me translate his post into VB.Net.
How not to do it.
<Category("Integration")> _
How to do it.
vbnet
<Category(Categories.Integration)> _
where Categories is a sealed class with constants
vbnet
Namespace NUnitCategories
Public NotInheritable Class Categories
Public Const Integration As String = "Integration"
End Class
End Namespace