()
| 56 | } |
| 57 | |
| 58 | [Test] |
| 59 | public void CanPrintWithMostParams() |
| 60 | { |
| 61 | var options = new PrintOptions() |
| 62 | { |
| 63 | Orientation = PrintOrientation.Landscape, |
| 64 | ScaleFactor = 0.5, |
| 65 | PageDimensions = new PrintOptions.PageSize { Width = 200, Height = 100 }, |
| 66 | PageMargins = new PrintOptions.Margins { Top = 1, Bottom = 1, Left = 2, Right = 2 }, |
| 67 | OutputBackgroundImages = true, |
| 68 | ShrinkToFit = false |
| 69 | }; |
| 70 | |
| 71 | options.AddPageRangeToPrint("1-3"); |
| 72 | |
| 73 | var pdf = printer.Print(options); |
| 74 | |
| 75 | Assert.That(pdf.AsBase64EncodedString, Does.Contain(MagicString)); |
| 76 | } |
| 77 | |
| 78 | [Test] |
| 79 | public void PageSizeCannotBeNull() |
nothing calls this directly
no test coverage detected