| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- using NUnit.Framework;
- using QuestPDF.Drawing.Exceptions;
- using QuestPDF.Examples.Engine;
- using QuestPDF.Fluent;
- using QuestPDF.Helpers;
- namespace QuestPDF.Examples
- {
- public class DebuggingTesting
- {
- [Test]
- public void Column()
- {
- Assert.Throws<DocumentLayoutException>(() =>
- {
- RenderingTest
- .Create()
- .PageSize(500, 360)
- .Render(container =>
- {
- container
- .Padding(10)
- .Width(100)
- .Background(Colors.Grey.Lighten3)
- .DebugPointer("Example debug pointer")
- .Column(x =>
- {
- x.Item().Text("Test");
- x.Item().Width(150);
- });
- });
- });
- }
- [Test]
- public void Simple()
- {
- Assert.Throws<DocumentLayoutException>(() =>
- {
- RenderingTest
- .Create()
- .PageSize(500, 360)
- .Render(container =>
- {
- container
- .Padding(10)
- .Width(100)
- .Background(Colors.Grey.Lighten3)
- .Width(150)
- .Text("Test");
- });
- });
- }
- [Test]
- public void DebugPointer()
- {
- Assert.Throws<DocumentLayoutException>(() =>
- {
- RenderingTest
- .Create()
- .PageSize(500, 360)
- .Render(container =>
- {
- container
- .Background(Colors.Grey.Lighten3)
- .Padding(10)
- .Width(100)
- .DebugPointer("Example debug pointer")
- .Width(150)
- .Text("Example");
- });
- });
- }
- }
- }
|