public void Test01Connectivity() { POS pos = new POS(PORT); Assert.IsTrue(pos.Connect()); pos.Disonnect(); }
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(); }