Skip to content

Default Infinity Values Produce the Character #208

@JasonBock

Description

@JasonBock

To reproduce:

public interface IUseInfinity
{
  void Use(double value = double.PositiveInfinity);
}

public static class Test
{
  public static void Go()
  {
    var expectations = Rock.Create<IUseInfinity>();
  }
}

This produces public void Use(double @value = ∞) in the mock.

This was found on StackExchange.Redis.IBatch.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions