Odd, I did that and it still isn't working. Maybe they changed their
On Jul 2, 10:51 pm, "Daniel Cazzulino" <
dan...@cazzulino.com> wrote:
> Actually, looks like you can.
>
>
> The fact that DP is embedded in Moq doesn't change the behavior of the
> generated assembly, which is the one yours has to be "friend" of
>
>
>
> On Wed, Jul 2, 2008 at 6:25 PM, Nathan Stott <
nrst...@gmail.com> wrote:
>
> > You can't mock internal types. It's a limitation of dynamic proxy.
>
> > On Wed, Jul 2, 2008 at 5:06 PM, yesthatmcgurk <
yesthatmcg...@gmail.com> wrote:
>
> >> I've got an internal type I want to mock, but I get the error message:
>
> >> Castle.DynamicProxy.Generators.GeneratorException: Type is not public,
> >> so a proxy cannot be generated. Type: Shaolin.Core.IProviderContainer.
>
> >> The thing is that I marked my assembly as InternalsVisibleTo the Moq
> >> dll (I have to do this for all my unit test projects, so I know that I
> >> did it right).
>
> >> What I'm not sure of is if the fact that the moq binaries are merged
> >> with the castle binaries, how does that effect InternalsVisibleTo? Is
> >> there a castle DLL sitting inside the Moq dll that I have to grant
> >> access to my internals to? Or should the castle dynamic proxy
> >> generator have access to whatever the Moq dll has access to?- Hide quoted text -