Files

28 lines
745 B
C#
Raw Permalink Normal View History

2021-04-17 21:52:33 +02:00
using NUnit.Framework;
2021-01-16 01:31:39 +01:00
using QuestPDF.Drawing.SpacePlan;
using QuestPDF.Elements;
using QuestPDF.Infrastructure;
2021-04-09 19:10:55 +02:00
using QuestPDF.UnitTests.TestEngine;
2021-01-16 01:31:39 +01:00
namespace QuestPDF.UnitTests
{
[TestFixture]
public class PageBreakTests
{
[Test]
2021-04-09 19:10:55 +02:00
public void Measure()
2021-01-16 01:31:39 +01:00
{
2021-04-09 19:10:55 +02:00
TestPlan
.For(x => new PageBreak())
.MeasureElement(new Size(400, 300))
.CheckMeasureResult(new PartialRender(400, 300))
.DrawElement(new Size(400, 300))
.CheckDrawResult()
.MeasureElement(new Size(500, 400))
.CheckMeasureResult(new FullRender(Size.Zero));
2021-01-16 01:31:39 +01:00
}
}
}