This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix interface bug introduced by 162a543
Commit 162a543 introduced a bug by handing over too many interfaces to Castle's `ProxyGenerator.CreateClassProxy` method. The intention behind that commit apparently was to enable `mock.As<TInterface>` even after `mock.Object` has already been called. That change unfortunately also caused mocked class' methods that im- plement an interface method to no longer be mocked correctly. This commit fixes this problem by ensuring that the "internally implemented" interfaces are not explicitly passed to `.CreateClass- Proxy` (like it used to be done previously).
- Loading branch information