Skip to content

Conversation

@stefannikolei
Copy link
Contributor

  • 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;
Copy link
Contributor Author

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..

Copy link
Member

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

Copy link
Contributor Author

@stefannikolei stefannikolei Nov 15, 2025

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

Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants