コード例 #1
0
        public void IsTrue_FalseValue_ArgumentException()
        {
            var ex = Assert.Throws <ArgumentException>(
                () => ParameterValidation.IsTrue(false, "Message", TestParameterName));

            Assert.That(ex.ParamName, Is.EqualTo(TestParameterName));
        }
コード例 #2
0
 public void IsTrue_TrueValue_DoesNotThrow()
 {
     Assert.DoesNotThrow(
         () => ParameterValidation.IsTrue(true, "Message", TestParameterName));
 }