|
@@ -205,6 +205,8 @@ namespace QuestPDF.UnitTests.TestEngine
|
|
|
|
|
|
|
|
public TestPlan CheckMeasureResult(ISpacePlan expected)
|
|
public TestPlan CheckMeasureResult(ISpacePlan expected)
|
|
|
{
|
|
{
|
|
|
|
|
+ Element.HandleVisitor(x => x?.Initialize(null, Canvas));
|
|
|
|
|
+
|
|
|
var actual = Element.Measure(OperationInput);
|
|
var actual = Element.Measure(OperationInput);
|
|
|
|
|
|
|
|
Assert.AreEqual(expected.GetType(), actual.GetType());
|
|
Assert.AreEqual(expected.GetType(), actual.GetType());
|
|
@@ -223,6 +225,7 @@ namespace QuestPDF.UnitTests.TestEngine
|
|
|
|
|
|
|
|
public TestPlan CheckDrawResult()
|
|
public TestPlan CheckDrawResult()
|
|
|
{
|
|
{
|
|
|
|
|
+ Element.HandleVisitor(x => x?.Initialize(null, Canvas));
|
|
|
Element.Draw(OperationInput);
|
|
Element.Draw(OperationInput);
|
|
|
return this;
|
|
return this;
|
|
|
}
|
|
}
|