Skip to content

Instantly share code, notes, and snippets.

@jacksonh
Created July 8, 2010 23:53
Show Gist options
  • Save jacksonh/468820 to your computer and use it in GitHub Desktop.
Save jacksonh/468820 to your computer and use it in GitHub Desktop.
[Test()]
public void TestCtorInvalidMethod ()
{
string name = "tester";
string [] patterns = new string [] { "foo", "bar" };
string [] methods = new string [] { "GET", "PUT", "SKULLFUCK" };
Assert.Throws<ArgumentException> (() => new RouteHandler (name, patterns, methods));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment