Esempio n. 1
0
        public virtual void ConvertUPCAtoUPCEFrom3Position20000Test()
        {
            String expectedUpce = BarcodeEAN.ConvertUPCAtoUPCE("012200005706");

            NUnit.Framework.Assert.AreEqual("01257026", expectedUpce);
        }
Esempio n. 2
0
        public virtual void ConvertUPCAtoUPCE12DigitsStartNotWith0Or1Test()
        {
            String expectedUpce = BarcodeEAN.ConvertUPCAtoUPCE("025272730706");

            NUnit.Framework.Assert.IsNull(expectedUpce);
        }
Esempio n. 3
0
        public virtual void ConvertUPCAtoUPCEIncorrectTextTest()
        {
            String expectedUpce = BarcodeEAN.ConvertUPCAtoUPCE("HelloWorld");

            NUnit.Framework.Assert.IsNull(expectedUpce);
        }
Esempio n. 4
0
        public virtual void ConvertUPCAtoUPCE10PositionBiggerThan5Test()
        {
            String expectedUpce = BarcodeEAN.ConvertUPCAtoUPCE("011111000090");

            NUnit.Framework.Assert.AreEqual("01111190", expectedUpce);
        }
Esempio n. 5
0
        public virtual void ConvertUPCAtoUPCE10PositionBiggerThan5NullTest()
        {
            String expectedUpce = BarcodeEAN.ConvertUPCAtoUPCE("011111111711");

            NUnit.Framework.Assert.IsNull(expectedUpce);
        }
Esempio n. 6
0
        public virtual void ConvertUPCAtoUPCEFrom5Position0NullTest()
        {
            String expectedUpce = BarcodeEAN.ConvertUPCAtoUPCE("012340111706");

            NUnit.Framework.Assert.IsNull(expectedUpce);
        }