Last active
March 25, 2016 18:32
-
-
Save gindyo/238aeec39709efa30e07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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