Skip to content

Replacing part of assertion #5

Closed
@jnyrup

Description

@jnyrup

When verifying multiple assertions against the same object, you often combine them with .And.
Currently it seems the codefixer is not aware of this concept.

actual.Should().NotBeNull()
    .And.NotBeEmpty()
    .And.HaveCount(2);

is replaced with

actual.Should().NotBeNullOrEmpty();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions