Skip to content

Add support for ref bool, ref bool?, in bool, and in bool? when using NUnit.Framework.ValuesAttribute #3872

Description

@lsolano

The following type of tests are not executed because they do not produce any data for [Values] attribute when parameters are in bool, in bool?, ref bool, or ref bool?.

public void SomeParameterizedTest([Values] in bool someFlag)
{
  // Test case code here ...
}

The test is not reported as failure, or ignored but it is silently not executed.

If the described behavior is not a design decision I would like to add support for the four scenarios (already implemented on my fork at commit d6f38fadc1c790695720bddde233c4b0fcdb02f4).

As a side note, it will be very helpful to have some kind of warning about those situations.

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions