public HardwareSmartCardTest()
    {
      List<CardInfo> lst = SmartCardUtils.GetReaderNames();
      Assert.IsNotNull(lst);
      Assert.IsTrue(lst.Count > 0);
      String readerName = lst[0].ReaderName;
      BigInteger.TryParse(this.pString, out p);
      BigInteger.TryParse(this.qString, out q);

      smartCard = new SmartCard(readerName, "1234");
      try
      {
        this.smartCard.SetVirginMode();
      }
      catch (Exception)
      {
        Assert.Fail("Set the card into virgin mode failed");
      }
    }
        public HardwareSmartCardTest()
        {
            List <CardInfo> lst = SmartCardUtils.GetReaderNames();

            Assert.IsNotNull(lst);
            Assert.IsTrue(lst.Count > 0);
            String readerName = lst[0].ReaderName;

            BigInteger.TryParse(this.pString, out p);
            BigInteger.TryParse(this.qString, out q);

            smartCard = new SmartCard(readerName, "1234");
            try
            {
                this.smartCard.SetVirginMode();
            }
            catch (Exception)
            {
                Assert.Fail("Set the card into virgin mode failed");
            }
        }