コード例 #1
0
        public virtual void GetBarsSupplemental2Test()
        {
            String expectedBytes = "1121222113211";

            byte[] bytes = BarcodeEAN.GetBarsSupplemental2("10");
            NUnit.Framework.Assert.AreEqual(13, bytes.Length);
            for (int i = 0; i < expectedBytes.Length; i++)
            {
                NUnit.Framework.Assert.AreEqual(expectedBytes[i] - '0', bytes[i]);
            }
        }