Skip to content

NUnit3002 doesn't recognize the using statement. #911

Closed

Description

@AlisonAMorrison
private IInstallation m_Installation;
        
[Setup]
public async Task Setup()
{
    using (SubscriptionCapture<PifEventArgs> capture = CaptureFactory.For(m_Events.Added))
    {
        m_Installation = await m_Installations.Add(InstallationHelper.CreateDefinition()).ConfigureAwait(false);
        await capture.WaitForAndReset(1).ConfigureAwait(false);
    }
}

Complains CS8618: Non-nullable field must contain a non-null value

Activity

  1. added this to the Release 4.11 milestone on Oct 15, 2025
  2. changed the title [-]NUnit3002 doesn't recognized the using statement.[/-] [+]NUnit3002 doesn't recognize the using statement.[/+] on Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions