http://blog.ashmind.com/index.php/2008/05/09/mocking-internal-interfaces-with-moq/
I assume you strong sign your test assembly as well, otherwise, I can
easily create an assembly with the same name as your test assembly and
see all your internals, which defeats your purpose of IP protection.
Now if you do make internal visible to the generated assembly as I
suggested, again I can easily create same named assembly and call your
internals.
So I see more of an IP protection strategy problem rather then the
limitation of Moq I think.
IMHO, "internal" is not the answer to IP protection. Raflector will
should me all your internals anyway.
So making internal visible to your test assembly and DPBA2 is
perfectly fine and right thing to do.
> The assembly containing my internal types to which I added the attribute is not strongly-named (yet)
Sorry, I assumed strong-name a sure thing based on all those strict
rules you have described.
> Yeah it seems like this only works when the assembly with the internal types or internal constructors is not signed.
This is not true. See the link I have provided earlier. Honestly, I
didn't test myself with Moq but I do used it with another mocking
framework also based on same proxy generator: DP2.