I've got code like this in a blazor component...
<MyComponent OnSomeEvent="@((id) => SomeMethod(id)" />
Now coverlet says that this line isn't tested.
In the containing control I'm testing that the delegate is called, and I have tests covering MyComponent.SomeMethod
in the MyComponent.razor.cs
file, but I can neither prevent Coverlet from saying this code isn't covered or find a way of excluding this line from code coverage.
Any suggestions about what I'm missing would be gratefully received.