Here's something to start with regarding the sealed class scenario. The bool CanResolve(Type type) method in TinyMockingContainer and AutofacContainer still need to be changed to take this into consideration. Only if a dependency in the chain cannot be mocked then they should return false. Otherwise they should return true.
Thanks for making these changes @mwhelan.
Here's something to start with regarding the sealed class scenario. The
bool CanResolve(Type type)
method inTinyMockingContainer
andAutofacContainer
still need to be changed to take this into consideration. Only if a dependency in the chain cannot be mocked then they should return false. Otherwise they should return true.