private static void DoWork()
        {
            BarcodeDataMatrix bc = new BarcodeDataMatrix();

            bc.SetOptions(BarcodeDataMatrix.DM_AUTO);
            bc.SetWidth(10);
            bc.SetHeight(10);
            int result = bc.SetCode("AB01");

            Assert.AreEqual(BarcodeDataMatrix.DM_NO_ERROR, result);
        }
Exemple #2
0
        public virtual void Barcode07Test()
        {
            BarcodeDataMatrix bc = new BarcodeDataMatrix();

            bc.SetOptions(BarcodeDataMatrix.DM_AUTO);
            bc.SetWidth(10);
            bc.SetHeight(10);
            String aCode  = "aBCdeFG12";
            int    result = bc.SetCode(aCode);

            NUnit.Framework.Assert.AreEqual(result, BarcodeDataMatrix.DM_ERROR_TEXT_TOO_BIG);
        }