public virtual void ConvertUPCAtoUPCEFrom3Position20000Test() { String expectedUpce = BarcodeEAN.ConvertUPCAtoUPCE("012200005706"); NUnit.Framework.Assert.AreEqual("01257026", expectedUpce); }
public virtual void ConvertUPCAtoUPCE12DigitsStartNotWith0Or1Test() { String expectedUpce = BarcodeEAN.ConvertUPCAtoUPCE("025272730706"); NUnit.Framework.Assert.IsNull(expectedUpce); }
public virtual void ConvertUPCAtoUPCEIncorrectTextTest() { String expectedUpce = BarcodeEAN.ConvertUPCAtoUPCE("HelloWorld"); NUnit.Framework.Assert.IsNull(expectedUpce); }
public virtual void ConvertUPCAtoUPCE10PositionBiggerThan5Test() { String expectedUpce = BarcodeEAN.ConvertUPCAtoUPCE("011111000090"); NUnit.Framework.Assert.AreEqual("01111190", expectedUpce); }
public virtual void ConvertUPCAtoUPCE10PositionBiggerThan5NullTest() { String expectedUpce = BarcodeEAN.ConvertUPCAtoUPCE("011111111711"); NUnit.Framework.Assert.IsNull(expectedUpce); }
public virtual void ConvertUPCAtoUPCEFrom5Position0NullTest() { String expectedUpce = BarcodeEAN.ConvertUPCAtoUPCE("012340111706"); NUnit.Framework.Assert.IsNull(expectedUpce); }