public void TestTwoItemsToString()
        {
            var tags = new EmvTags();

            tags.AddBcd(Tag.tran_date, "100824");
            tags.AddBcd(Tag.term_county_code, "710");
            var expected = "0x9a   'tran_date           ' = [100824]" + Environment.NewLine +
                           "0x9f1a 'term_county_code    ' = [0710]";
            var actual = tags.ToString();

            Assert.AreEqual(expected, actual);
        }
        public void TestAddBcd()
        {
            var tags = new EmvTags();

            tags.AddBcd(Tag.term_county_code, "710");
            byte[] actual   = tags[Tag.term_county_code];
            byte[] expected = "0710".ToByteArray();
            CollectionAssert.AreEqual(expected, actual);
        }
        public void TestSingleItemToString()
        {
            var tags = new EmvTags();

            tags.AddBcd(Tag.tran_date, "100824");
            var expected = "0x9a   'tran_date           ' = [100824]";
            var actual   = tags.ToString();

            Assert.AreEqual(expected, actual);
        }
        public void TestGetBcd()
        {
            var tags = new EmvTags();

            tags.AddBcd(Tag.term_county_code, "710");
            string actual   = tags.GetBcd(Tag.term_county_code);
            string expected = "0710";

            Assert.AreEqual(expected, actual);
        }