Skip to content

Instantly share code, notes, and snippets.

@FraukeN
Created June 2, 2018 11:38
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 FraukeN/a4b6d252212aacfb7a5b68e2d2b1b552 to your computer and use it in GitHub Desktop.
Save FraukeN/a4b6d252212aacfb7a5b68e2d2b1b552 to your computer and use it in GitHub Desktop.
OverviewVM null repository test
[Test]
public void creating_a_new_instance_of_OverviewVM_with_null_repository_throws_ArgumentNullException()
{
// Assert
Assert.That(() => new OverviewVM(null),
Throws.Exception
.TypeOf<ArgumentNullException>()
.With.Property("ParamName")
.EqualTo("toDoRepo"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment