示例#1
0
        public virtual void ConvertUPCAtoUPCEFrom3Position20000Test()
        {
            String expectedUpce = BarcodeEAN.ConvertUPCAtoUPCE("012200005706");

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

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

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

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

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

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