Skip to content

Instantly share code, notes, and snippets.

@gindyo
Last active March 25, 2016 18:32
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 gindyo/238aeec39709efa30e07 to your computer and use it in GitHub Desktop.
Save gindyo/238aeec39709efa30e07 to your computer and use it in GitHub Desktop.
[TestFixture]
pubilc class GuardTess{
[Test]
pubilc void throws_exeption_when_null(){
Assert.Throws<ArgumentNullException>(()=> Guard.IsNotNull(null) );
}
[Test]
pubilc void does_not_throw_exeption_when_not_null(){
Assert.DoesNotThrow( Guard.IsNotNull(new object()) );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment