Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

Syntax for multiple assertions #29

Description

@provegard

Should be avoided, but may be useful.

  expect.multiple(Seq(
    expect(...).toEqual(...),
    expect(...).toMatch(...)
  ))

NUnit's Assert.Multiple is not really equivalent since we need our tests to return an Expectation. So we need a compound Expectation here.

Perhaps a params array is nicer:

  expect.multiple(
    expect(...).toEqual(...),
    expect(...).toMatch(...)
  )

@eliasson thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions