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])); }
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])); }
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])); }
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])); }