コード例 #1
0
        public void Validate_0_ThrowsException()
        {
            var person = new FakePerson();

            var actual = Assert.ThrowsException <InvalidOperationException>(() => person.ValidateIsPositiveValue(0));

            Assert.AreEqual("Value has to be positive", actual.Message);
        }