public void testEncodeByte()
        {
            var encoded = PDF417HighLevelEncoder.encodeHighLevel(
                "abcd", Compaction.BYTE, Encoding.UTF8, false);

            Assert.AreEqual("\u039f\u001A\u0385abcd", encoded);
        }
        public void testEncodeNumeric()
        {
            var encoded = PDF417HighLevelEncoder.encodeHighLevel(
                "1234", Compaction.NUMERIC, Encoding.UTF8, false);

            Assert.AreEqual("\u039f\u001A\u0386\f\u01b2", encoded);
        }
        public void testEncodeText()
        {
            var encoded = PDF417HighLevelEncoder.encodeHighLevel(
                "ABCD", Compaction.TEXT, Encoding.UTF8, false);

            Assert.AreEqual("Ο\u001A\u0001?", encoded);
        }
        public void testEncodeAuto()
        {
            var encoded = PDF417HighLevelEncoder.encodeHighLevel(
                "ABCD", Compaction.AUTO, Encoding.UTF8, false);

            Assert.AreEqual("\u039f\u001A\u0385ABCD", encoded);
        }
 public void testEncodeIso88591WithSpecialChars()
 {
     // Just check if this does not throw an exception
     PDF417HighLevelEncoder.encodeHighLevel("asdfg§asd", Compaction.AUTO, Encoding.GetEncoding("ISO8859-1"), false);
 }
 public void testEncodeAutoWithSpecialChars()
 {
     //Just check if this does not throw an exception
     PDF417HighLevelEncoder.encodeHighLevel(
         "1%§s ?aG$", Compaction.AUTO, Encoding.UTF8, false);
 }