public void CanCancelPendingIfBuildIsPending() { mockProjectMonitor.ExpectAndReturn("IsPending", true); controller.SelectedProject = projectMonitor; Assert.IsTrue(controller.CanCancelPending()); mockProjectMonitor.Verify(); }
public void CanCancelPendingIfBuildIsPending() { mockProjectMonitor.SetupGet(_monitor => _monitor.IsPending).Returns(true).Verifiable(); controller.SelectedProject = projectMonitor; Assert.IsTrue(controller.CanCancelPending()); mockProjectMonitor.Verify(); }