public void CanFixBuildIfBuildIsBroken() { mockProjectMonitor.ExpectAndReturn("ProjectState", ProjectState.Broken); controller.SelectedProject = projectMonitor; Assert.IsTrue(controller.CanFixBuild()); mockProjectMonitor.Verify(); }
public void CanFixBuildIfBuildIsBroken() { mockProjectMonitor.SetupGet(_monitor => _monitor.ProjectState).Returns(ProjectState.Broken).Verifiable(); controller.SelectedProject = projectMonitor; Assert.IsTrue(controller.CanFixBuild()); mockProjectMonitor.Verify(); }