Ejemplo n.º 1
0
 public void ShowHelpTabMessageExpectHelpTabWithUriActive()
 {
     lock (syncroot)
     {
         CreateFullExportsAndVm();
         var msg = new ShowHelpTabMessage("testuri");
         _mainViewModel.Handle(msg);
         var helpctx = _mainViewModel.ActiveItem.WorkSurfaceViewModel as HelpViewModel;
         Assert.IsTrue(helpctx.Uri == "testuri");
     }
 }
Ejemplo n.º 2
0
 public void ShowHelpTabMessageExpectHelpTabWithUriActive()
 {
     CreateFullExportsAndVm();
     var msg = new ShowHelpTabMessage("testuri");
     MainViewModel.Handle(msg);
     var helpctx = MainViewModel.ActiveItem.WorkSurfaceViewModel as HelpViewModel;
     Assert.IsNotNull(helpctx);
     // ReSharper disable PossibleNullReferenceException
     Assert.IsTrue(helpctx.Uri == "testuri");
     // ReSharper restore PossibleNullReferenceException
 }