public void IsStepRequired_WithoutPassowrds_IsTrue() { _job.Profile.PdfSettings.Security = new Security() { Enabled = true }; var step = new PdfPasswordsStep(); Assert.IsTrue(step.IsStepRequired(_job)); }
public void IsStepRequired_WithFormatNotPdf_IsFalse() { _job.Profile.PdfSettings.Security = new Security() { Enabled = true }; _job.Profile.OutputFormat = OutputFormat.Png; var step = new PdfPasswordsStep(); Assert.IsFalse(step.IsStepRequired(_job)); }
public void IsStepRequired_WithUserpPasswordandEmptyPassowrds_IsFalse() { _job.Profile.PdfSettings.Security = new Security() { Enabled = true, RequireUserPassword = true, OwnerPassword = "******", UserPassword = "******" }; var step = new PdfPasswordsStep(); Assert.IsFalse(step.IsStepRequired(_job)); }
public void IsStepRequired_WithDefaults_IsFalse() { var step = new PdfPasswordsStep(); Assert.IsFalse(step.IsStepRequired(_job)); }