private static void CheckVersionInstance(iText.Kernel.Version instance) { String product = instance.GetProduct(); String release = instance.GetRelease(); String version = instance.GetVersion(); String key = instance.GetKey(); VersionInfo info = instance.GetInfo(); NUnit.Framework.Assert.AreEqual(product, info.GetProduct()); NUnit.Framework.Assert.AreEqual("iText®", product); NUnit.Framework.Assert.AreEqual(release, info.GetRelease()); NUnit.Framework.Assert.IsTrue(release.Matches("[7]\\.[0-9]+\\.[0-9]+(-SNAPSHOT)?$")); NUnit.Framework.Assert.AreEqual(version, info.GetVersion()); NUnit.Framework.Assert.IsTrue(CheckVersion(version)); NUnit.Framework.Assert.IsNull(key); }
/// <summary>Gets the product name.</summary> /// <remarks> /// Gets the product name. /// iText Group NV requests that you retain the iText producer line /// in every PDF that is created or manipulated using iText. /// </remarks> /// <returns>the product name</returns> public String GetProduct() { return(info.GetProduct()); }