public void AskToIntegrateFailsIfUnableToLock()
 {
     var project = new ProjectStub();
     var queue = new TestQueue();
     var context = new IntegrationContext(project);
     queue.Lock();
     Assert.Throws<Exception>(() => queue.AskToIntegrate(context));
 }
 public void CompletingAnIntegrationFailsIfUnableToLock()
 {
     var project = new ProjectStub();
     var queue = new TestQueue();
     var context = new IntegrationContext(project);
     queue.AskToIntegrate(context);
     queue.Lock();
     Assert.Throws<Exception>(context.Complete);
 }
Beispiel #3
0
        public void AskToIntegrateFailsIfUnableToLock()
        {
            var project = new ProjectStub();
            var queue   = new TestQueue();
            var context = new IntegrationContext(project);

            queue.Lock();
            Assert.Throws <Exception>(() => queue.AskToIntegrate(context));
        }
Beispiel #4
0
        public void CompletingAnIntegrationFailsIfUnableToLock()
        {
            var project = new ProjectStub();
            var queue   = new TestQueue();
            var context = new IntegrationContext(project);

            queue.AskToIntegrate(context);
            queue.Lock();
            Assert.Throws <Exception>(context.Complete);
        }