Skip to content

Commit

Permalink
fix unit test expected values
Browse files Browse the repository at this point in the history
  • Loading branch information
barnhill committed Apr 28, 2024
1 parent 52c0ddb commit f69e092
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions BarcodeStandardExample/TestApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions BarcodeStandardTests/Symbologies/IATA2of5Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f69e092

Please sign in to comment.