[Article] Fun with Unit Tests – Testing abstract classes

By Roy Osherove In .Net Original

Markdown version

Historical article · Originally published September 24, 2003; technical details may be outdated.

Just posted my latest article:

Fun with Unit Tests – Testing abstract classes

Summary

In this article I’ll be looking into a trickier part of unit testing– testing the functionality of classes who cannot be instantiated on their own, abstract classes.

I’ll show how to overcome this obstacle using “Mock Objects”, a technique which has a whole methodology behind it all on its own. We’ll see how mock objects provide us with abilities that let us query what’s happening inside our derived class.  

 

Read it. Have fun. Be productive.

More in .Net Original

All posts in .Net Original