コード例 #1
0
        public void Test01Connectivity()
        {
            POS pos = new POS(PORT);

            Assert.IsTrue(pos.Connect());
            pos.Disonnect();
        }
コード例 #2
0
        public void Test02Sale()
        {
            POS pos = new POS(PORT);

            pos.POSPrints = true;

            if (pos.Connect())
            {
                SaleResult saleResult;
                saleResult = pos.Sale(12345);
                Assert.IsTrue(saleResult.Success);
            }
            else
            {
                Assert.Fail();
            }
            pos.Disonnect();
        }