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