I'm trying to test my ViewModel which inherits screen, but nunit is barfing with the following error when trying to construct my viewmodel :
System.TypeInitializationException : The type initializer for 'Caliburn.Micro.ConventionManager' threw an exception. ----> System.UnauthorizedAccessException : [InvalidCrossThreadAccess] at Caliburn.Micro.ViewAware..ctor()
at Caliburn.Micro.Screen..ctor() Orders\OrderViewModel.cs(19,0):
My view model has nothing it it apart from inheriting Screen:
public class OrderViewModel : Screen
Am using latest Caliburn (taken from codeplex last night).
Any help would be most appreciated !