Skip to content

Commit 797dc55

Browse files
Add a fail fast to collect dumps
1 parent d6547a3 commit 797dc55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libraries/System.Drawing.Common/tests/FontTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,8 @@ public void ToLogFont_InvokeGraphics_ReturnsExpected(TextRenderingHint textRende
813813
var logFont = new LOGFONT();
814814
font.ToLogFont(logFont, graphics);
815815

816-
Assert.Equal(-13, logFont.lfHeight);
816+
if (-13 != logFont.lfHeight) Environment.FailFast("");
817+
// Assert.Equal(-13 != logFont.lfHeight);
817818
Assert.Equal(0, logFont.lfWidth);
818819
Assert.Equal(0, logFont.lfEscapement);
819820
Assert.Equal(0, logFont.lfOrientation);

0 commit comments

Comments
 (0)