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"); } }
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 }