Skip to content

Instantly share code, notes, and snippets.

@plioi
Created December 12, 2013 16:13
Show Gist options
  • Save plioi/7930603 to your computer and use it in GitHub Desktop.
Save plioi/7930603 to your computer and use it in GitHub Desktop.
[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
public class SkipAttribute : Attribute { }
public class CustomConvention : Convention
{
public CustomConvention()
{
Classes
.NameEndsWith("Tests");
Methods
.Where(method => method.IsVoid())
.Where(method => !method.HasOrInherits<SkipAttribute>());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment