public void Should_not_throw_on_enabled_outbox() { Assert.DoesNotThrow(() => { TimeToBeRceivedOverrideChecker.Check(usingMsmq: true, isTransactional: true, outBoxRunning: true, auditTTBROverridden: false, forwardTTBROverridden: false); }); }
public void Should_throw_on_overridden_TimeToBeReceivedOnForwardedMessages() { var exception = Assert.Throws <Exception>(() => { TimeToBeRceivedOverrideChecker.Check(usingMsmq: true, isTransactional: true, outBoxRunning: false, auditTTBROverridden: false, forwardTTBROverridden: true); }); Assert.AreEqual("Setting a custom TimeToBeReceivedOnForwardedMessages is not supported on transactional MSMQ.", exception.Message); }