Skip to content

Commit f69e092

Browse files
committed
fix unit test expected values
1 parent 52c0ddb commit f69e092

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

BarcodeStandardExample/TestApp.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ private void btnEncode_Click(object sender, EventArgs e)
8282
//===== Encoding performed here =====
8383
barcode.BackgroundImage = Image.FromStream(_b.Encode(type, txtData.Text.Trim(), _b.ForeColor, _b.BackColor, w, h).Encode().AsStream());
8484
//===================================
85-
85+
8686
//show the encoding time
8787
lblEncodingTime.Text = @"(" + Math.Round(_b.EncodingTime, 0, MidpointRounding.AwayFromZero) + @"ms)";
88-
88+
8989
txtEncoded.Text = _b.EncodedValue;
9090

9191
tsslEncodedType.Text = @"Encoding Type: " + _b.EncodedType;

BarcodeStandardTests/Symbologies/IATA2of5Tests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ public class IATA2of5Tests
1212
};
1313

1414
[DataTestMethod]
15-
[DataRow("0380003562164928", "1010101011101110101110111010101011101010111010101011101110101010111011101010101110111010111011101010101110101110101010111011101010101110101011101110101010111010111011101010101011101011101011101011101010111010101110111010101110101010101110111001101")]
16-
[DataRow("12345678901234567", "1010111010101011101011101010111011101110101010101011101011101110101110101010111011101010101010111011101110101011101010111010111010101011101110101110101010111010111010101110111011101010101010111010111011101011101010101110111010101110101110101001101")]
17-
[DataRow("19279472947891274", "1010111010101011101011101011101010111010101110101010111011101011101011101010101110101110101010111011101011101010111010111010111010101011101011101010101110111011101010111010101110101110101110101010111010111010101110101010111011101110101011101001101")]
15+
[DataRow("0380003562164928", "101010101110111010111011101010101110101011101010101110111010101011101110101010111011101011101110101010111010111010101011101110101010111010101110111010101011101011101110101010101110101110101110101110101011101010111011101010111010101010111011101010101110111001101")]
16+
[DataRow("12345678901234567", "101011101010101110101110101011101110111010101010101110101110111010111010101011101110101010101011101110111010101110101011101011101010101110111010111010101011101011101010111011101110101010101011101011101110101110101010111011101010101011101110101010111011101001101")]
17+
[DataRow("19279472947891274", "101011101010101110101110101110101011101010111010101011101110101110101110101010111010111010101011101110101110101011101011101011101010101110101110101010111011101110101011101010111010111010111010101011101011101010111010101011101110111010101110101110101011101001101")]
1818
public void EncodeBarcode(string data, string expected)
1919
{
2020
_barcode.Encode(data);

0 commit comments

Comments
 (0)