示例#1
0
            public void WhenIsNotNull_ThenDoesNotThrowException()
            {
                var param = new object();

                Assert.DoesNotThrow(() => ArgMustBe.NotNull(param));
            }
示例#2
0
            public void WhenIsNull_ThenThrowException()
            {
                object param = null;

                Assert.Throws <ArgumentNullException>(() => ArgMustBe.NotNull(param));
            }