Skip to content

Commit

Permalink
System.Drawing.Common.Tests fail ToLogFont_Invoke tests on non Englis…
Browse files Browse the repository at this point in the history
…h Windows (dotnet#59328)
  • Loading branch information
AlexRadch authored Oct 14, 2021
1 parent e7709b6 commit 4768646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/System.Drawing.Common/tests/FontTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ public void ToLogFont_Invoke_ReturnsExpected(FontStyle fontStyle, byte gdiCharSe
Assert.Equal(font.Italic ? 1 : 0, logFont.lfItalic);
Assert.Equal(font.Underline ? 1 : 0, logFont.lfUnderline);
Assert.Equal(font.Strikeout ? 1 : 0, logFont.lfStrikeOut);
Assert.Equal(font.GdiCharSet, logFont.lfCharSet);
Assert.Equal(SystemFonts.DefaultFont.GdiCharSet <= 2 ? font.GdiCharSet : SystemFonts.DefaultFont.GdiCharSet, logFont.lfCharSet);
Assert.Equal(0, logFont.lfOutPrecision);
Assert.Equal(0, logFont.lfClipPrecision);
Assert.Equal(0, logFont.lfQuality);
Expand Down Expand Up @@ -837,7 +837,7 @@ public void ToLogFont_InvokeGraphics_ReturnsExpected(TextRenderingHint textRende
Assert.Equal(0, logFont.lfItalic);
Assert.Equal(0, logFont.lfUnderline);
Assert.Equal(0, logFont.lfStrikeOut);
Assert.Equal(1, logFont.lfCharSet);
Assert.Equal(SystemFonts.DefaultFont.GdiCharSet <= 2 ? font.GdiCharSet : SystemFonts.DefaultFont.GdiCharSet, logFont.lfCharSet);
Assert.Equal(0, logFont.lfOutPrecision);
Assert.Equal(0, logFont.lfClipPrecision);
Assert.Equal(0, logFont.lfQuality);
Expand Down

0 comments on commit 4768646

Please sign in to comment.