public void AddressIsRequired() { DestinationFTP settings = CreateDefaultSettings(); settings.address = null; ICollection <ValidationResult> result; DefinitionFTP.TryValidate(settings, out result); Check.That(result).CountIs(1); }
public void EncryptionMustBeValid() { DestinationFTP settings = CreateDefaultSettings(); settings.encryption = null; ICollection <ValidationResult> result; DefinitionFTP.TryValidate(settings, out result); Check.That(result).CountIs(1); settings.encryption = "TLS"; DefinitionFTP.TryValidate(settings, out result); Check.That(result).CountIs(0); settings.encryption = "SSL"; DefinitionFTP.TryValidate(settings, out result); Check.That(result).CountIs(0); }