Skip to content

Instantly share code, notes, and snippets.

@carlosschults
Created April 10, 2017 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlosschults/ee9cca1221d4c51d845daa06733c10fd to your computer and use it in GitHub Desktop.
Save carlosschults/ee9cca1221d4c51d845daa06733c10fd to your computer and use it in GitHub Desktop.
Assert.That(
() => repo.FindByName(""),
Throws.TypeOf<ArgumentException>()
.With.Message.EqualTo("Name must be a non-empty string."));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment