Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NUnit1031 doesn't seem to work with Generic parameters #632

Closed
manfred-brands opened this issue Nov 7, 2023 · 0 comments · Fixed by #638
Closed

NUnit1031 doesn't seem to work with Generic parameters #632

manfred-brands opened this issue Nov 7, 2023 · 0 comments · Fixed by #638

Comments

@manfred-brands
Copy link
Member

Given:

[Test]
public void Combinatorial_TwoTypeParameters<T1, T2>(
    [Values(5, 5.0)] T1 x,
    [Values(2.0, 2)] T2 y)
{
    Assert.Multiple(() =>
    {
        Assert.That(x, Is.EqualTo(5));
        Assert.That(y, Is.EqualTo(2));
    });
}

Raises:
image

It should either do nothing or actually determine the type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants