diff options
-rw-r--r-- | src/System.Drawing.Common/tests/FontTests.cs | 2 | ||||
-rw-r--r-- | src/System.Drawing.Common/tests/Printing/PrintDocumentTests.cs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/System.Drawing.Common/tests/FontTests.cs b/src/System.Drawing.Common/tests/FontTests.cs index 65926fb7a2..e742cedcf1 100644 --- a/src/System.Drawing.Common/tests/FontTests.cs +++ b/src/System.Drawing.Common/tests/FontTests.cs @@ -638,7 +638,7 @@ namespace System.Drawing.Tests }; using (Font font = Font.FromLogFont(logFont)) { - VerifyFont(font, family.Name, 16, fontStyle, GraphicsUnit.World, charSet, expectedGdiVerticalFont: false); + VerifyFont(font, family.Name, font.Size, fontStyle, GraphicsUnit.World, charSet, expectedGdiVerticalFont: false); } } } diff --git a/src/System.Drawing.Common/tests/Printing/PrintDocumentTests.cs b/src/System.Drawing.Common/tests/Printing/PrintDocumentTests.cs index 223dc1f346..def75594c0 100644 --- a/src/System.Drawing.Common/tests/Printing/PrintDocumentTests.cs +++ b/src/System.Drawing.Common/tests/Printing/PrintDocumentTests.cs @@ -256,7 +256,8 @@ namespace System.Drawing.Printing.Tests break; default: - Assert.False(true, "Unexpected default paper size"); + string message = $"Unexpected default paper size. Kind={pageSettings.PaperSize.Kind}, Bounds={pageSettings.Bounds}"; + Assert.False(true, message); break; } |