Skip to content

Commit

Permalink
Uncomment test asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Jan 10, 2025
1 parent fbf9b48 commit 27d5cc5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/SixLabors.Fonts.Tests/Issues/Issues_431.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ public void ShouldNotInsertExtraLineBreaks()
WrappingLength = 400,
};

TextLayoutTestUtilities.TestLayout(text, options);

int lineCount = TextMeasurer.CountLines(text, options);
Assert.Equal(4, lineCount);

IReadOnlyList<GlyphLayout> layout = TextLayout.GenerateLayout(text, options);
Assert.Equal(46, layout.Count);

TextLayoutTestUtilities.TestLayout(text, options);
}
}

Expand All @@ -45,13 +45,13 @@ public void ShouldNotInsertExtraLineBreaks_2()
WrappingLength = 400,
};

TextLayoutTestUtilities.TestLayout(text, options);

int lineCount = TextMeasurer.CountLines(text, options);
//Assert.Equal(4, lineCount);
Assert.Equal(4, lineCount);

IReadOnlyList<GlyphLayout> layout = TextLayout.GenerateLayout(text, options);
// Assert.Equal(46, layout.Count);

TextLayoutTestUtilities.TestLayout(text, options);
Assert.Equal(46, layout.Count);
}
}
}

0 comments on commit 27d5cc5

Please sign in to comment.