Skip to content

Assert.MultipleAsync -> EnterMultipleScope autofix produce invalid code #888

@MaceWindu

Description

@MaceWindu
[Test]
public async ValueTask Test()
{
    await Assert.MultipleAsync(async () =>
    {
        await Task.CompletedTask;
    });
}

after fix applied:

// 1. ValueTask replaced with Task
// 2. duplicate async added
[Test]
public async async Task Test()
{
    using (Assert.EnterMultipleScope())
    {
        await Task.CompletedTask;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions