Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mocking an interface that has a sealed implementation of a method #1334

Open
ricardo-noyolalozano opened this issue Mar 1, 2023 · 2 comments

Comments

@ricardo-noyolalozano
Copy link

ricardo-noyolalozano commented Mar 1, 2023

public interface MyInterface
{
    public sealed Task SealedMethod(Foo foo) => UnsealedMethod(foo.Name);
}

When I mock this interface and inject into the class I am testing, I get an exception thrown about it missing the sealed method. I was wondering whether there would be any support for this kind of interface.

Back this issue
Back this issue

@stakx
Copy link
Contributor

stakx commented Mar 1, 2023

This has to happen over at DynamicProxy's repo, see their issue at castleproject/Core#447.

Copy link

Due to lack of recent activity, this issue has been labeled as 'stale'.
It will be closed if no further activity occurs within 30 more days.
Any new comment will remove the label.

@github-actions github-actions bot added the stale label Aug 24, 2024
@github-actions github-actions bot removed the stale label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants