示例#1
0
            public void WhenIsNotDefault_ThenDoesNotThrowException()
            {
                const int param = 1;

                Assert.DoesNotThrow(() => ArgMustBe.NotDefault(param));
            }
示例#2
0
            public void WhenIsDefault_ThenThrowException()
            {
                const int param = default;

                Assert.Throws <ArgumentDefaultException>(() => ArgMustBe.NotDefault(param));
            }