-
-
Notifications
You must be signed in to change notification settings - Fork 887
Fix errors reported by rider #3013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
stefannikolei
commented
Nov 14, 2025
- Used collection expressions were possible
- Added the used type were needed for clarification
- Disabled an Resharper rule With ImageSharp.sln.DotSettings --> It said that the Attribute ConstantExpected is not valid on floats
- Removed unused TestHelper
- Rewrote some tests to use utf8 string instead of raw byte array to make the test clearer
- Used collection expressions were possible - Added the used type were needed for clarification - Disabled an Resharper rule With ImageSharp.sln.DotSettings --> It said that the Attribute ConstantExpected is not valid on floats
| private static bool ShouldSkipBitmapTest => | ||
| !TestEnvironment.Is64BitProcess || (TestHelpers.ImageSharpBuiltAgainst != "netcoreapp3.1" && | ||
| TestHelpers.ImageSharpBuiltAgainst != "netcoreapp2.1"); | ||
| !TestEnvironment.Is64BitProcess; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now gives a test error. It seems that those tests were now always skipped..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Boolean result is not different here for 64bit builds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is different for 64bit builds. Having the second part, then it evaluates to true. Without the second part it evaluates to false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha! You’re right!
I wonder what’s wrong there then. Will investigate locally when I can.