.NET / WPF Testing C# Code That’s Run as the Result of an Event Being Fired If you have had any trouble figuring out how to test your presenter classes (or any classes that respond to events), I recommend trying this technique.
Java Mocking Built-in, Standard Library, & Other Classes without Interfaces The most popular mock generating libraries in C# and Java only provide full functionality for interfaces. No interface, no mock.