Skip to content

MSTest 4.3.2 visual indicator regression #10045

Description

@nlaslett

Describe the bug

Starting with MSTest 4.3.x, Assert.AreEqual no longer shows visual diff indicator (^) for strings.

Version used

MSTest 4.3.2

Steps To Reproduce

Call Assert.AreEqual() on two long strings with a single-character difference. The message output still reports the first character difference, such as:

Strings have same length (385) and differ at 1 location(s). First difference at index 337.

but there is no visual indicator like:

________________^

Expected behavior

See the visual indicator.

Actual behavior

No visual indicator.

Additional context

Love this feature when working with long fixed-width data format! Hopefully this is just a simple regression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs/triageNeeds triage by a maintainer.

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions