microsoft / SimpleStubs

*SimpleStubs* is a simple mocking framework that supports Universal Windows Platform (UWP), .NET Core and .NET framework. SimpleStubs is currently developed and maintained by Microsoft BigPark Studios in Vancouver.
Other
66 stars 29 forks source link

Fix for 'using static' #20

Closed bkardol closed 7 years ago

bkardol commented 7 years ago

SimpleStubs.generated.cs should not include usings which were 'using static' from origin. Therefore we're filtering these out. If a file contains for example using static System.String, the Code Generator converted it to using System.String which is wrong.

msftclas commented 7 years ago

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request. Thanks, Microsoft Pull Request Bot

nehmebilal commented 7 years ago

Thanks @Snorvisable. Instead of filtering, wouldn't be better to carry over the using static System.String as is?

nehmebilal commented 7 years ago

I added support for static usings. Thanks @Snorvisable for the PR!

bkardol commented 7 years ago

I agree, thanks a lot.