public void IsTrue_FalseValue_ArgumentException() { var ex = Assert.Throws <ArgumentException>( () => ParameterValidation.IsTrue(false, "Message", TestParameterName)); Assert.That(ex.ParamName, Is.EqualTo(TestParameterName)); }
public void IsTrue_TrueValue_DoesNotThrow() { Assert.DoesNotThrow( () => ParameterValidation.IsTrue(true, "Message", TestParameterName)); }