title: How to Unit Test when the WPF Application is needed?
body: <p>I need to test my library with Unit Testing.</p>
  
  <p>Unfortunately the library takes as a parameter a System.Windows.Application instance. Normally in the real world WPF application this would be the <code>public partial class App : Application</code> entry <code>App.xaml</code> application class.</p>
  
  <p>This is needed for the <code>DispatcherUnhandledException</code> event that the library uses to register a handler.</p>
  
  <p>Is there a way to mock or to initialize the <code>Application.Current</code>, which is null in a WPF Unit Test library?</p>
  
  <p>Thank you.</p>