ninject / Ninject.MockingKernel

Extension for Ninject aiding testability in Moq, NSubstitute, and FakeItEasy
http://ninject.org/
Other
62 stars 25 forks source link

Add support for mock of delegates. (Supported as of Moq 4.1.) #22

Closed bnordli closed 9 years ago

bnordli commented 9 years ago

We use injected delegates extensively, and would love to use MockingKernel also for delegates.

Moq 4.1. started supporting mocking of delegates (all other supported frameworks already supports it), so this change enables MockingKernel to also create mocks of delegates.

Note that the order of IMissingBindingResolver-s is imported, since SelfBindingResolver claims delegates are self bound, even though they are not!