mwhelan / Specify

Specify is an opinionated .Net Core testing library that builds on top of BDDfy from TestStack
http://specify-dotnet.readthedocs.org/
MIT License
20 stars 8 forks source link

Allow sealed classes to be in the dependency chain #18

Closed shaynevanasperen closed 7 years ago

shaynevanasperen commented 7 years ago

Thanks for making these changes @mwhelan.

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.

mwhelan commented 7 years ago

Awesome work, Shayne! Thanks.