Version Used: VS 17.14
Steps to Reproduce:
- Download https://github.com/microsoft/vs-streamjsonrpc
- Add
<BuildingForLiveUnitTesting>true</BuildingForLiveUnitTesting> to the main Directory.Build.props, to compile all projects with LUT instrumentation and the /instrument:TestCoverage csc flag
- After the build ildasm/disassemble the StreamJsonRpc.dll
- There are multiple methods that use the same coverage payload index (in this case
PayloadRoot[244] even though it should be unique per method). In the examples below it's both under StreamJsonRpc.JsonRpc class.


Expected Behavior:
All methods should have a unique PayloadRoot[index] index value.
Actual Behavior:
Multiple methods have the same PayloadRoot[index]. In this example multiple methods have PayloadRoot[244] and that's causing two methods to share the same coverage array.