Esempio n. 1
0
 public void BaseViewModelConstructorBasicParameterTest()
 {
     TestHandler.RunInWpfSyncContext(
         async() =>
     {
         // arrange
         await Task.Yield();
         // act
         var viewModel = new TestViewModel(Messenger.Default, SynchronizationContext.Current);
         // assert
         TestHandler.AssertNonPublicProperty(viewModel, "SyncContext", SynchronizationContext.Current, "Synchronization context not set as expected.");
         TestHandler.AssertNonPublicProperty(viewModel, "MessengerInstance", Messenger.Default, "Messenger context not set as expected.");
     });
 }