How do you mock a Sealed class?
Posted
by Brett Veenstra
on Stack Overflow
See other posts from Stack Overflow
or by Brett Veenstra
Published on 2008-08-09T00:14:22Z
Indexed on
2010/04/06
20:13 UTC
Read the original article
Hit count: 468
Mocking sealed classes can be quite a pain. I currently favor an Adapter pattern to handle this, but something about just keeps feels weird.
So, What is the best way you mock sealed classes?
Java answers are more than welcome. In fact, I would anticipate that the Java community has been dealing with this longer and has a great deal to offer.
But here are some of the .NET opinions:
© Stack Overflow or respective owner