Skip to content

String .BeEquivalentTo() is case-sensitive on linux #1096

@nvborisenko

Description

@nvborisenko

It seems that BeEquivalentTo() doesn't ignore case when comparing strings on Linux environment.

"SomeString".Should().BeEquivalentTo("somestring");

Expected: verification passes.

It works as expected on Windows, but throws but "SomeString" differs near "Som" (index 0) exception on Linux.

On the same environment string assertion from NUnit framework works as expected.

StringAssert.AreEqualIgnoringCase("SomeString", "somestring");

Info:

  • FluentAssertions v5.7.0
  • .netcoreapp 2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions