diff --git a/QuestPDF.Examples/FrameExample.cs b/QuestPDF.Examples/FrameExample.cs index e98bb35..f8d8ae0 100644 --- a/QuestPDF.Examples/FrameExample.cs +++ b/QuestPDF.Examples/FrameExample.cs @@ -23,12 +23,13 @@ namespace QuestPDF.Examples public class FrameExample { [Test] - public void Frame(IContainer container) + public void Frame() { RenderingTest .Create() .PageSize(550, 400) .FileName() + .ShowResults() .Render(container => { container diff --git a/QuestPDF.Examples/Padding.cs b/QuestPDF.Examples/Padding.cs index 66b3ff4..6d7bfca 100644 --- a/QuestPDF.Examples/Padding.cs +++ b/QuestPDF.Examples/Padding.cs @@ -12,8 +12,9 @@ namespace QuestPDF.Examples { RenderingTest .Create() - .PageSize(200, 150) + .PageSize(300, 300) .FileName() + .ShowResults() .Render(container => { container diff --git a/QuestPDF.Examples/TextExamples.cs b/QuestPDF.Examples/TextExamples.cs index 0c1231b..c0f7d1d 100644 --- a/QuestPDF.Examples/TextExamples.cs +++ b/QuestPDF.Examples/TextExamples.cs @@ -37,7 +37,7 @@ namespace QuestPDF.Examples text.Line(Placeholders.LoremIpsum()); - text.Span($"This is target text that does not show up. {DateTime.UtcNow:T} > This is a short sentence that will be wrapped into second line hopefully, right? <", TextStyle.Default.Underline()); + text.Span($"This is target text that should show up. {DateTime.UtcNow:T} > This is a short sentence that will be wrapped into second line hopefully, right? <", TextStyle.Default.Underline()); }); }); } @@ -174,8 +174,6 @@ namespace QuestPDF.Examples foreach (var i in Enumerable.Range(1, 100)) { text.Line($"{i}: {Placeholders.Paragraph()}"); - - text.EmptyLine(); text.ExternalLocation("Please visit QuestPDF website", "https://www.questpdf.com"); @@ -183,6 +181,8 @@ namespace QuestPDF.Examples text.CurrentPageNumber(); text.Span(" out of "); text.TotalPages(); + + text.EmptyLine(); } }); }); diff --git a/QuestPDF.UnitTests/TestEngine/TestPlan.cs b/QuestPDF.UnitTests/TestEngine/TestPlan.cs index ae35300..78544ea 100644 --- a/QuestPDF.UnitTests/TestEngine/TestPlan.cs +++ b/QuestPDF.UnitTests/TestEngine/TestPlan.cs @@ -254,9 +254,15 @@ namespace QuestPDF.UnitTests.TestEngine public static Element CreateUniqueElement() { - return new DynamicImage + return new Constrained { - Source = Placeholders.Image + MinWidth = 90, + MinHeight = 60, + + Child = new DynamicImage + { + Source = Placeholders.Image + } }; }