Пример #1
0
 public void CanCancelPendingIfBuildIsPending()
 {
     mockProjectMonitor.ExpectAndReturn("IsPending", true);
     controller.SelectedProject = projectMonitor;
     Assert.IsTrue(controller.CanCancelPending());
     mockProjectMonitor.Verify();
 }
Пример #2
0
 public void CanCancelPendingIfBuildIsPending()
 {
     mockProjectMonitor.SetupGet(_monitor => _monitor.IsPending).Returns(true).Verifiable();
     controller.SelectedProject = projectMonitor;
     Assert.IsTrue(controller.CanCancelPending());
     mockProjectMonitor.Verify();
 }