public void IngenicoPinpadPrinter_AddSeparator_ShouldMatchPrintingType_IfMethodIsMappingItCorrectly() { // Arrange IngenicoPrinterAction expectedPrintingType = IngenicoPrinterAction.PrintText; // Act this.Printer.AddSeparator(); // Assert Assert.AreEqual(expectedPrintingType, this.Printer.ItemsToPrint[0].Type); }
public void IngenicoPinpadPrinter_AppendLine_ShouldMatchPrintingType_IfNoParametersArePassedAndMethodIsMappingItCorrectly() { // Arrange IngenicoPrinterAction expectedType = IngenicoPrinterAction.SkipLine; // Act this.Printer.AppendLine(); // Assert Assert.AreEqual(expectedType, this.Printer.ItemsToPrint[0].Type); }
public void IngenicoPinpadPrinter_AddQrCode_ShouldMatchPrintingType_IfMethodIsMappingItCorrectly() { // Arrange string qrCodeMessage = "I'm a QR code!"; PrinterAlignmentCode alignment = PrinterAlignmentCode.Center; IngenicoPrinterAction expectedType = IngenicoPrinterAction.PrintQrCode; // Act this.Printer.AddQrCode(alignment, qrCodeMessage); // Assert Assert.AreEqual(expectedType, this.Printer.ItemsToPrint[0].Type); }
public void IngenicoPinpadPrinter_AppendLine_ShouldMatchPrintingType_IfParametersArePassedAndMethodIsMappingItCorrectly() { // Arrange string text = "I'm a happy text!"; PrinterAlignmentCode alignment = PrinterAlignmentCode.Center; PrinterFontSize size = PrinterFontSize.Medium; IngenicoPrinterAction expectedType = IngenicoPrinterAction.PrintText; // Act this.Printer.AppendLine(alignment, size, text); // Assert Assert.AreEqual(expectedType, this.Printer.ItemsToPrint[0].Type); }