Example #1
0
        public virtual void RetrieveImageExtendedNullTest()
        {
            HtmlResourceResolver resourceResolver = CreateResolver();
            PdfXObject           image            = resourceResolver.RetrieveImageExtended(null);

            NUnit.Framework.Assert.IsNull(image);
        }
Example #2
0
        public virtual void RetrieveImageExtendedIncorrectBase64Test()
        {
            HtmlResourceResolver resourceResolver = CreateResolver();
            PdfXObject           image            = resourceResolver.RetrieveImageExtended(bLogoCorruptedData);

            NUnit.Framework.Assert.IsNull(image);
        }
        public void RetrieveImageExtendedBase64Test()
        {
            HtmlResourceResolver resourceResolver = CreateResolver();
            PdfXObject           image            = resourceResolver.RetrieveImageExtended(bLogo);

            NUnit.Framework.Assert.NotNull(image);
        }