Example #1
0
        public void IsValidProperty_When_Property_Is_Null_Should_Throw_ValidationException()
        {
            var model = new TestModel();

            Assert.Throws <ValidationException>(
                () => Invariant.IsValidProperty(model, model.RequiredProperty, nameof(model.RequiredProperty)));
        }