Skip to content

Support tuples in inline data #4771

Description

@MaxKot

Feature request

Add support to passing tuples in inline parameter values. This would simplify passing complex values while using combinatorial and pairwise test cases generation.

Example usage:

[Test]
public void Test
(
    [Values(new object[] {"a", 1}, new object[] {"b", 2})]
    (string, int) a,
    [Values(1, 2, 3)]
    int b
)

Currently it can be achieved with ValueSource. Note that this feature will also need an update to NUnit1031 diagnostic.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions