diff --git a/BarcodeStandardExample/TestApp.cs b/BarcodeStandardExample/TestApp.cs index 1f6a3e0..5059806 100644 --- a/BarcodeStandardExample/TestApp.cs +++ b/BarcodeStandardExample/TestApp.cs @@ -82,10 +82,10 @@ private void btnEncode_Click(object sender, EventArgs e) //===== Encoding performed here ===== barcode.BackgroundImage = Image.FromStream(_b.Encode(type, txtData.Text.Trim(), _b.ForeColor, _b.BackColor, w, h).Encode().AsStream()); //=================================== - + //show the encoding time lblEncodingTime.Text = @"(" + Math.Round(_b.EncodingTime, 0, MidpointRounding.AwayFromZero) + @"ms)"; - + txtEncoded.Text = _b.EncodedValue; tsslEncodedType.Text = @"Encoding Type: " + _b.EncodedType; diff --git a/BarcodeStandardTests/Symbologies/IATA2of5Tests.cs b/BarcodeStandardTests/Symbologies/IATA2of5Tests.cs index 0c7dc24..80d36a3 100644 --- a/BarcodeStandardTests/Symbologies/IATA2of5Tests.cs +++ b/BarcodeStandardTests/Symbologies/IATA2of5Tests.cs @@ -12,9 +12,9 @@ public class IATA2of5Tests }; [DataTestMethod] - [DataRow("0380003562164928", "1010101011101110101110111010101011101010111010101011101110101010111011101010101110111010111011101010101110101110101010111011101010101110101011101110101010111010111011101010101011101011101011101011101010111010101110111010101110101010101110111001101")] - [DataRow("12345678901234567", "1010111010101011101011101010111011101110101010101011101011101110101110101010111011101010101010111011101110101011101010111010111010101011101110101110101010111010111010101110111011101010101010111010111011101011101010101110111010101110101110101001101")] - [DataRow("19279472947891274", "1010111010101011101011101011101010111010101110101010111011101011101011101010101110101110101010111011101011101010111010111010111010101011101011101010101110111011101010111010101110101110101110101010111010111010101110101010111011101110101011101001101")] + [DataRow("0380003562164928", "101010101110111010111011101010101110101011101010101110111010101011101110101010111011101011101110101010111010111010101011101110101010111010101110111010101011101011101110101010101110101110101110101110101011101010111011101010111010101010111011101010101110111001101")] + [DataRow("12345678901234567", "101011101010101110101110101011101110111010101010101110101110111010111010101011101110101010101011101110111010101110101011101011101010101110111010111010101011101011101010111011101110101010101011101011101110101110101010111011101010101011101110101010111011101001101")] + [DataRow("19279472947891274", "101011101010101110101110101110101011101010111010101011101110101110101110101010111010111010101011101110101110101011101011101011101010101110101110101010111011101110101011101010111010111010111010101011101011101010111010101011101110111010101110101110101011101001101")] public void EncodeBarcode(string data, string expected) { _barcode.Encode(data);