Beispiel #1
0
        public void Atr3()
        {
            var atr = new Atr("3B B7 18 00 81 31 FE 65 53 50 4B 32 34 90 00 5A");

            Assert.AreEqual("TS:3B T0:B7 Ta1:18 Tb1:00 Td1:81 Td2:31 Ta3:FE Tb3:65 historic:53 50 4B 32 34 90 00 TCK:5A", atr.ToString());

            Assert.True(atr.HasInterfaceByte(InterfaceId.T0));
            Assert.True(atr.HasInterfaceByte(InterfaceId.Ta1));
            Assert.True(atr.HasInterfaceByte(InterfaceId.Tb1));
            Assert.False(atr.HasInterfaceByte(InterfaceId.Tc1));
            Assert.True(atr.HasInterfaceByte(InterfaceId.Td1));
        }
Beispiel #2
0
        public void Atr1()
        {
            var atr = new Atr("3F 67 25 00 21 20 00 0F 78 90 00");

            Assert.AreEqual("TS:3F T0:67 Tb1:25 Tc1:00 historic:21 20 00 0F 78 90 00", atr.ToString());

            Assert.True(atr.HasInterfaceByte(InterfaceId.T0));
            Assert.False(atr.HasInterfaceByte(InterfaceId.Ta1));
            Assert.True(atr.HasInterfaceByte(InterfaceId.Tb1));
            Assert.True(atr.HasInterfaceByte(InterfaceId.Tc1));
            Assert.False(atr.HasInterfaceByte(InterfaceId.Td1));
        }
Beispiel #3
0
        public void Atr2()
        {
            var atr = new Atr("3B 75 13 00 00 44 09 EA 90 00");

            Assert.AreEqual("TS:3B T0:75 Ta1:13 Tb1:00 Tc1:00 historic:44 09 EA 90 00", atr.ToString());

            Assert.True(atr.HasInterfaceByte(InterfaceId.T0));
            Assert.True(atr.HasInterfaceByte(InterfaceId.Ta1));
            Assert.True(atr.HasInterfaceByte(InterfaceId.Tb1));
            Assert.True(atr.HasInterfaceByte(InterfaceId.Tc1));
            Assert.False(atr.HasInterfaceByte(InterfaceId.Td1));
        }