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);
 }
Exemple #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));
        }
Exemple #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);
        }