Skip to content

IsEqualTo does not handle double.NaN correctly #3359

@PhilippNaused

Description

@PhilippNaused
[Test]
public async Task Test1()
{
    await Assert.That(double.NaN).IsEqualTo(double.NaN);
}

Result:

AssertionException: Expected to be NaN
but found NaN

This is a regression compared to v0.67.19
This doesn't happen with float.NaN

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions