Exemple #1
0
        public void IsStepRequired_WithoutPassowrds_IsTrue()
        {
            _job.Profile.PdfSettings.Security = new Security()
            {
                Enabled = true
            };

            var step = new PdfPasswordsStep();

            Assert.IsTrue(step.IsStepRequired(_job));
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        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));
        }
Exemple #4
0
        public void IsStepRequired_WithDefaults_IsFalse()
        {
            var step = new PdfPasswordsStep();

            Assert.IsFalse(step.IsStepRequired(_job));
        }