public void TestContentViewModel_WhenMonitorStatusIsUnrecognisedError_ReturnsUnrecognisedErrorViewModel() { _monitor.Status.Returns(MonitorStatus.UnrecognisedError); var unrecognisedErrorViewModel = new UnrecognisedErrorViewModel(); var systemUnderTest = new MonitorWindowViewModel(_monitor, Substitute.For <INoProjectsViewModel>(), new SingleProjectViewModel(new PullRequestListViewModel(), new PullRequestListViewModel()), new FirstUpdateViewModel(), _couldNotReachServerViewModel, unrecognisedErrorViewModel); Assert.That(systemUnderTest.ContentViewModel, Is.EqualTo(unrecognisedErrorViewModel)); }
public void TestUpdate_DoesNotCrash() { var systemUnderTest = new UnrecognisedErrorViewModel(); systemUnderTest.Update(); }