Skip to content

Instantly share code, notes, and snippets.

@plioi
Created September 27, 2013 00:10
Show Gist options
  • Save plioi/6722405 to your computer and use it in GitHub Desktop.
Save plioi/6722405 to your computer and use it in GitHub Desktop.
public class ShouldaConvention : Convention
{
public ShouldaConvention()
{
Classes
.Where(type => type.Name.StartsWith("When_");
Cases
.Where(method => method.Name.StartsWith("Should_"))
.Where(method => method.IsVoid());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment