Skip to content

Commit

Permalink
Unit tests with InlineData
Browse files Browse the repository at this point in the history
  • Loading branch information
agriffard committed Feb 23, 2025
1 parent 7fcceab commit 199cb77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/unit-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ public void FluentButton_OnClick()

### Example with parameters

You can use the xUnit `[InlineData]` attribute to test several scenarios.
La méthode `Verify` dispose alors d'un attribut `suffix` pour générer plusieurs fichiers
You can use the xUnit `[InlineData]` attribute to test several scenarios.
In this case, we suggest you to use the `suffix` parameter of the `Verify` method to generate multiple files for each test:

- `FluentButtonTests.FluentButton_FormIdAttribute-form-id-attribute.verified.razor.html`
- `FluentButtonTests.FluentButton_FormIdAttribute-[null].received.razor.html`
Expand Down

0 comments on commit 199cb77

Please sign in to comment.