public void ThenValidIfAllPropertiesSpecified() { _validCommand.Commitment = null; var result = _validator.Validate(TestHelper.Clone(_validCommand)); Assert.IsFalse(result.IsValid); }
public void WhenCommandIsNullIsInvalid() { Assert.Throws <ArgumentNullException>(() => _validator.Validate(null)); }