Skip to content

[Bug]: All().Satisfy doesn't work with member of double? types #4684

@Josehardrock

Description

@Josehardrock

Description

All().Satisfy doesn't work with member of double? types.

Expected Behavior

Assertion of All().Satisfy() works with different types and not only with string properties

Actual Behavior

Image

Assertion when member is of double?

Image

Steps to Reproduce

  1. Create an object with different properties and include a nullable double property.
  2. Create a collection of that object, IList, Array, etc...
  3. Make a test that asserts all member of that collection Satisfy a condition. It doesn't matter the condition
  4. Try to run the test.

TUnit Version

1.12.15, 1.12.147

.NET Version

10

Operating System

Windows

IDE / Test Runner

dotnet CLI (dotnet test / dotnet run)

Error Output / Stack Trace

Additional Context

No response

IDE-Specific Issue?

  • I've confirmed this issue occurs when running via dotnet test or dotnet run, not just in my IDE

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions