Skip to content

Warn.If in Assert.Multiple #2979

Closed
Closed
@ArvoX

Description

@ArvoX

This test
[Test] public void Test() { Assert.Multiple(() => Warn.If(true)); }
gives this result: System.Exception : Warn.If may not be used in a multiple assertion block.

But the documentation of Multiple Asserts says:

  1. Use of Warnings (Assert.Warn, Warn.If, Warn.Unless) is permitted inside a multiple assert block. Warnings are reported normally along with any failures that occur inside the block.

So either the documentaion is worng or there is a worng check in the code.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions