I am using Visual Studio 2010 and would like to exclude the generated service reference code from my code coverage statistics.
I found an article pre 2010 that ment
The generated classes are partial. If you create a new class in your project with the same namespace and class declaration you can add the [ExcludeFromCodeCoverage]
attribute to your partial class. That way you don't have to go back and edit the Reference.cs
file whenever you refresh your reference.