Skip to content

[NUnit1031] False positive for nullable structs #938

@MaceWindu

Description

@MaceWindu

Version: 4.11.0

The value of the argument at position '0' of type SomeEnum cannot be assigned to the parameter 'type' of type SomeEnum? (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit1031.md)
The value of the argument at position '1' of type object cannot be assigned to the parameter 'type' of type SomeEnum? (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit1031.md)
public void TestMethod([Values(SomeEnum.Value, null)] SomeEnum? value)
{
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions