public void IsValidModel_When_Argument_Is_Not_Valid_Should_Throw_ValidationException() { Assert.Throws <ValidationException>(() => Invariant.IsValidModel(new TestModel())); }
public void IsValidModel_When_Model_Is_Valid_Should_Not_Throw() { Assert.DoesNotThrow(() => Invariant.IsValidModel(new TestModel { RequiredProperty = 1 })); }
public void IsValidModel_When_Argument_Is_Null_Should_Throw_ArgumentNullException() { Assert.Throws <ArgumentNullException>(() => Invariant.IsValidModel <object>(null)); }