Skip to content

PCLMockCodeGen.exe method generation bug. #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
elwray opened this issue Aug 26, 2015 · 1 comment
Closed

PCLMockCodeGen.exe method generation bug. #14

elwray opened this issue Aug 26, 2015 · 1 comment
Labels

Comments

@elwray
Copy link

elwray commented Aug 26, 2015

Hi, developers!

I use PCLMockCodeGen.exe tool for generate mocks. When code was generated I found the next error in my Mocks.cs file:

public System.Double ToDisplayX(System.Double x)
{
    return this.Apply(x => x.ToDisplayX(x));
}

As you can see, PCLMockCodeGen tool generate param in anonymous method with "x" name, but my function argument already have "x" name. In this case Visual Studio shows error and this code can not be compiled.

@elwray elwray changed the title PCLMockCodeGen.exe mocks generation bugs. PCLMockCodeGen.exe method generation bug. Aug 26, 2015
@kentcb
Copy link
Owner

kentcb commented Aug 27, 2015

Thanks for the report @El-Wray - I'll take a look when I next can.

@kentcb kentcb added the bug label Sep 9, 2015
@kentcb kentcb closed this as completed in 0eb2376 Sep 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants