Skip to content

Improve readability of "assert failed" message for DictionaryContainsKeyValuePairConstraint WithValue() #3718

Description

@GustaMagik

Request for improvement of the assert message for .WithValue(), introduced in #3486

Current

Message: 
      Expected: dictionary containing entry System.Collections.DictionaryEntry
      But was:  < ["firstname", "Jane"], ["lastname", "Doe"] >

Preferred

Message: 
      Expected: dictionary containing entry ["firstname", "John"]
      But was:  < ["firstname", "Jane"], ["lastname", "Doe"] >

This would bring the message more in line with that of Contains.Key / Contains.Value

Message:
      Expected: dictionary containing key "email"
      But was:  < ["firstname", "Jane"], ["lastname", "Doe"] >

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions