Skip to content

Nunit 4.0.x Test case selection is incorrect with certain test data #4584

@johnjaylward

Description

@johnjaylward

We have certain test cases that are using test data and expected results.

When the tests run in Microsoft Visual Studio 2022 (64-bit) Version 17.8.2, the tests get ignored.

I've created a sample project that recreates the issue: https://github.com/johnjaylward/Nunit4_TestcaseSelectionIssue

I managed to find a work around that does let the tests run by adding another Test with the same name, but does not use parameters.

In the test project the SelectionFail tests show the bug while the SelectionSuccess test shows the workaround.

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions