Skip to content

Test failure System.Drawing.Tests.PenTests.Ctor_Brush_Width<SolidBrush>(brush: SolidBrush { Color = Color [Red] }, width: -∞, expectedPenType: SolidColor) #60751

@VincentBu

Description

@VincentBu

Run: runtime 20211021.47

Failed test:

net7.0-windows-Release-x64-CoreCLR_release-Windows.10.Amd64.ServerRS5.Open

- System.Drawing.Tests.PenTests.Ctor_Brush_Width<SolidBrush>(brush: SolidBrush { Color = Color [Red] }, width: -∞, expectedPenType: SolidColor)
- System.Drawing.Tests.PenTests.Ctor_Brush_Width<SolidBrush>(brush: SolidBrush { Color = Color [Red] }, width: -1, expectedPenType: SolidColor)
- System.Drawing.Tests.PenTests.Ctor_Brush_Width<SolidBrush>(brush: SolidBrush { Color = Color [Red] }, width: 0, expectedPenType: SolidColor)

net7.0-windows-Release-x64-CoreCLR_release-Windows.10.Amd64.ServerRS5.Open

- System.Drawing.Tests.PenTests.Ctor_Color_Width(width: -∞)
- System.Drawing.Tests.PenTests.Ctor_Color_Width(width: 0)
- System.Drawing.Tests.PenTests.Ctor_Color_Width(width: -1)

net7.0-windows-Release-x86-CoreCLR_release-Windows.10.Amd64.ServerRS5.Open

- System.Drawing.Tests.PenTests.Ctor_Brush_Width<SolidBrush>(brush: SolidBrush { Color = Color [Red] }, width: -∞, expectedPenType: SolidColor)
- System.Drawing.Tests.PenTests.Ctor_Brush_Width<SolidBrush>(brush: SolidBrush { Color = Color [Red] }, width: -1, expectedPenType: SolidColor)
- System.Drawing.Tests.PenTests.Ctor_Brush_Width<SolidBrush>(brush: SolidBrush { Color = Color [Red] }, width: 0, expectedPenType: SolidColor)

net7.0-windows-Release-x86-CoreCLR_release-Windows.10.Amd64.ServerRS5.Open

- System.Drawing.Tests.PenTests.Ctor_Color_Width(width: -∞)
- System.Drawing.Tests.PenTests.Ctor_Color_Width(width: 0)
- System.Drawing.Tests.PenTests.Ctor_Color_Width(width: -1)

Error message:

Assert.Equal() Failure
Expected: -∞
Actual:   1


Stack trace
   at System.Drawing.Tests.PenTests.VerifyPen[T](Pen pen, PenType expectedPenType, Single expectedWidth) in /_/src/libraries/System.Drawing.Common/tests/PenTests.cs:line 1384
   at System.Drawing.Tests.PenTests.Ctor_Brush_Width[T](T brush, Single width, PenType expectedPenType) in /_/src/libraries/System.Drawing.Common/tests/PenTests.cs:line 62

or

Assert.Equal() Failure
Expected: -1
Actual:   1


Stack trace
   at System.Drawing.Tests.PenTests.VerifyPen[T](Pen pen, PenType expectedPenType, Single expectedWidth) in /_/src/libraries/System.Drawing.Common/tests/PenTests.cs:line 1384
   at System.Drawing.Tests.PenTests.Ctor_Brush_Width[T](T brush, Single width, PenType expectedPenType) in /_/src/libraries/System.Drawing.Common/tests/PenTests.cs:line 62

or

Assert.Equal() Failure
Expected: 0
Actual:   1


Stack trace
   at System.Drawing.Tests.PenTests.VerifyPen[T](Pen pen, PenType expectedPenType, Single expectedWidth) in /_/src/libraries/System.Drawing.Common/tests/PenTests.cs:line 1384
   at System.Drawing.Tests.PenTests.Ctor_Brush_Width[T](T brush, Single width, PenType expectedPenType) in /_/src/libraries/System.Drawing.Common/tests/PenTests.cs:line 62

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions