How to Test Code that Uses Singletons like Application.Current.Dispatcher?
Got a question this morning from a student of my course WPF and MVVM: Test Driven Development.
Hey Thomas, how to test code that is using Application.Current.Dispatcher? Application.Current is null when the test is executed, which leads to an exception.(more…)