public virtual void GetBarsUPCETest() { String expectedBytes = "111212211411132132141111312111111"; byte[] bytes = BarcodeEAN.GetBarsUPCE("12345678"); NUnit.Framework.Assert.AreEqual(33, bytes.Length); for (int i = 0; i < expectedBytes.Length; i++) { NUnit.Framework.Assert.AreEqual(expectedBytes[i] - '0', bytes[i]); } }