Skip to content

Are internal methods supported? #695

@baynezy

Description

@baynezy

I have a bug raised on NSubstitute nsubstitute/NSubstitute#866 which after some debugging looks like it makes more sense to be here.

I have a reporoduction case which you can check out here https://github.com/baynezy/NSubstituteIssue

Essentially, this interface can be mocked:

public interface IExample
{
    bool Check();
}

and this one

public interface IExampleWithInternal
{
    internal bool Check();
}

throws a System.TypeLoadException.

Let me know if you need more detail.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions