.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.