public void DiagnosticInformation_ReturnedStringStartsWithExpert() { //Arrange DaisyExpert xPrinter = new DaisyExpert("COM3"); //Act var info = xPrinter.Information.DiagnosticInformation(); //Assert Assert.IsTrue(info.Result.StartsWith("eXpert")); }
public void GetDateAndTimeInformation_Default_ReturnsDatetimeString() { //Arrange DaisyExpert xPrinter = new DaisyExpert("COM3"); //Act var xdate = xPrinter.Information.GetDateAndTimeInformation(); //Assert DateTime dDate; Assert.IsTrue(DateTime.TryParseExact(xdate.Result, "dd-MM-yy HH:mm:ss", CultureInfo.InvariantCulture, DateTimeStyles.None, out dDate)); }
static void Main(string[] args) { DaisyExpert xPrinter = new DaisyExpert("COM3"); //Sales Sale = new Sales("COM3"); xPrinter.Sales.StartOfNonFiscalReceipt(); xPrinter.Sales.PrintNonFiscalText("glea"); var aa = xPrinter.Sales.EndOfNonFiscalReceipt(); var aaa = xPrinter.Information.GetDateAndTimeInformation(); //xPrinter.GetDateAndTimeInformation(); }