To Reproduce
Create this test:
var code =
"""
using Rocks;
using System;
[assembly: Rock(typeof(IDialogService), BuildType.Create)]
public interface IDialogService
{
int ShowSuccess(string message) => message.Length;
event EventHandler ThresholdReached;
}
""";
Expected behavior
The mock is created as expected.
Actual behavior
The following diagnostic is created:
// Rocks\Rocks.RockGenerator\IDialogService_Rock_Create.g.cs(97,6): error CS0535:
'IDialogServiceCreateExpectations.Mock.ShimIDialogService' does not implement interface member 'IDialogService.ThresholdReached'
Additional context
Basically, the event isn't added to the shim type.
This was found on Microsoft.FluentUI.AspNetCore.Components.IDialogService
To Reproduce
Create this test:
Expected behavior
The mock is created as expected.
Actual behavior
The following diagnostic is created:
Additional context
Basically, the event isn't added to the shim type.
This was found on
Microsoft.FluentUI.AspNetCore.Components.IDialogService