Exemple #1
0
        public virtual void LayerSetSingleIntent()
        {
            PdfLayer pdfLayer = PdfLayerTestUtils.PrepareLayerDesignIntent();
            ICollection <PdfName> defaultIntents = pdfLayer.GetIntents();

            NUnit.Framework.Assert.AreEqual(new PdfName[] { PdfName.Design }, defaultIntents.ToArray(new PdfName[1]));
        }
Exemple #2
0
        public virtual void LayerDefaultIntents()
        {
            PdfLayer pdfLayer = PdfLayerTestUtils.PrepareNewLayer();
            ICollection <PdfName> defaultIntents = pdfLayer.GetIntents();

            NUnit.Framework.Assert.AreEqual(new PdfName[] { PdfName.View }, defaultIntents.ToArray(new PdfName[1]));
        }
Exemple #3
0
        public virtual void LayerSetSeveralIntents()
        {
            PdfName  custom   = new PdfName("Custom");
            PdfLayer pdfLayer = PdfLayerTestUtils.PrepareLayerDesignAndCustomIntent(custom);
            ICollection <PdfName> defaultIntents = pdfLayer.GetIntents();

            NUnit.Framework.Assert.AreEqual(new PdfName[] { PdfName.Design, custom }, defaultIntents.ToArray(new PdfName
                                                                                                             [2]));
        }
Exemple #4
0
        public virtual void LayerSetIntentsNull()
        {
            PdfName  custom   = new PdfName("Custom");
            PdfLayer pdfLayer = PdfLayerTestUtils.PrepareLayerDesignAndCustomIntent(custom);

            pdfLayer.SetIntents(null);
            ICollection <PdfName> postNullIntents = pdfLayer.GetIntents();

            NUnit.Framework.Assert.AreEqual(new PdfName[] { PdfName.View }, postNullIntents.ToArray(new PdfName[1]));
        }