Skip to content

ImmutableSegmentedDictionaryTest.Indexer_KeyNotFoundException_ContainsKeyInMessage fails in Spanish CI #51271

@JoeRobich

Description

@JoeRobich

Test results: https://dev.azure.com/dnceng/public/_build/results?buildId=997900&view=ms.vss-test-web.build-test-results-tab&runId=31231848&resultId=203252&paneView=debug

Error message:

Assert.Contains() Failure
Not found: 'c'
In value:  La clave "c" especificada no estaba presente en el diccionario.

The issue is that single quotes can be changed to other types of quotes when translated to fit the target language. Proposal would be to format the error string with the expected key and then compare with the exception message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-InfrastructureResolution-FixedThe bug has been fixed and/or the requested behavior has been implemented

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions