Skip to content

Non async methods are being generated as async #116

@maca88

Description

@maca88

Example:

public class NestedAssertThat
{
  public void Test()
  {
    Throws<NestedAssertThat>();
  }

  private void Throws<T>()
  {
    Assert.Throws<Exception>(
      () => new NestedClass().Build(), $"Test{typeof(T)}");
  }

  private class NestedClass
  {
    public void Build()
    {

    }
  }
}

Expected: None of the above methods should be generated

Actual: ThrowsAsync and TestAsync are generated

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions