Skip to content

Commit 4cb202c

Browse files
committed
Only care about the start or error message
Resolves differences between netfx and netcore message formats
1 parent d0eef49 commit 4cb202c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/ImageSharp.Drawing.Tests/Issues/Issue-54.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void PenMustHaveAWidthGraterThanZero()
5252
IPen pen = new Pen(Color.White, 0);
5353
});
5454

55-
Assert.Equal("Parameter \"width\" (System.Single) must be greater than 0, was 0 (Parameter 'width')", ex.Message);
55+
Assert.StartsWith("Parameter \"width\" (System.Single) must be greater than 0, was 0", ex.Message);
5656
}
5757

5858

0 commit comments

Comments
 (0)