| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- 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)
- .EnableDebugging()
- .Render(container =>
- {
- container
- .Background(Colors.Grey.Lighten3)
- .Padding(10)
- .Width(100)
- .DebugPointer("Example debug pointer")
- .Width(150)
- .Text("Example");
- });
- });
- }
- }
- }
|