Skip to content

internal Types With Parameters Defined With internal Types Cause Errors #345

@JasonBock

Description

@JasonBock

To Reproduce

Create this code in an assembly targeted by a test assembly that's using Rocks:

[assembly: InternalsVisibleTo("RocksInternals.Tests")]

internal interface IDoStuff
{
  void Do(DataStuff dataStuff);
}

If DataStuff is public, this works in the test assembly:

[assembly: Rock(typeof(IDoStuff), BuildType.Create)]

But if DataStuff is internal, the following diagnostics occur:

The type IDoStuff has inaccessible abstract members and cannot be mocked
The type IDoStuff has no members that can be overriden

Also, "overriden" is misspelled, it should be "overridden".

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions