Skip to content

Commit 7f34884

Browse files
Update tests
1 parent 5646c22 commit 7f34884

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

tests/ImageSharp.Drawing.Tests/Drawing/Text/DrawTextOnImageTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ public void CanDrawTextVertical2<TPixel>(TestImageProvider<TPixel> provider)
879879
{
880880
LayoutMode = LayoutMode.VerticalLeftRight,
881881
LineSpacing = 1.4F,
882-
// TextRuns = new[] { new RichTextRun() { Start = 0, End = text.GetGraphemeCount(), TextDecorations = TextDecorations.Underline | TextDecorations.Strikeout | TextDecorations.Overline } }
882+
TextRuns = [new RichTextRun() { Start = 0, End = text.GetGraphemeCount(), TextDecorations = TextDecorations.Underline | TextDecorations.Strikeout | TextDecorations.Overline }]
883883
};
884884

885885
provider.RunValidatingProcessorTest(
@@ -903,7 +903,7 @@ public void CanDrawTextVerticalMixed<TPixel>(TestImageProvider<TPixel> provider)
903903
WrappingLength = 400,
904904
LayoutMode = LayoutMode.VerticalMixedLeftRight,
905905
LineSpacing = 1.4F,
906-
TextRuns = new[] { new RichTextRun() { Start = 0, End = text.GetGraphemeCount(), TextDecorations = TextDecorations.Underline | TextDecorations.Strikeout | TextDecorations.Overline } }
906+
TextRuns = [new RichTextRun() { Start = 0, End = text.GetGraphemeCount(), TextDecorations = TextDecorations.Underline | TextDecorations.Strikeout | TextDecorations.Overline }]
907907
};
908908

909909
provider.RunValidatingProcessorTest(
@@ -919,7 +919,7 @@ public void CanDrawTextVerticalMixed2<TPixel>(TestImageProvider<TPixel> provider
919919
if (SystemFonts.TryGet("Yu Gothic", out FontFamily fontFamily))
920920
{
921921
Font font = fontFamily.CreateFont(30F);
922-
const string text = "あいうえお、「こんにちはー」。もしもし。ABCDEFGg 日本語";
922+
const string text = "あいうえお、「こんにちはー」。もしもし。ABCDEFG 日本語";
923923
RichTextOptions textOptions = new(font)
924924
{
925925
LayoutMode = LayoutMode.VerticalMixedLeftRight,
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)