public void TestDestinationTypeWhereNoQueueIsIndicated() { JmsDestination destination = new JmsDestination(Url + "?"); Assert.AreEqual<String>(destination.Host, Url); Assert.IsTrue(String.IsNullOrEmpty(destination.Queue)); Assert.AreEqual<String>(destination.FullDestination, Url); }
public void TestDestinationTypeHostAndQueueAreRecognizedCorrectly() { JmsDestination destination = new JmsDestination(Host + "?" + Queue); Assert.AreEqual<String>(Host, destination.Host); Assert.AreEqual<String>(Queue, destination.Queue); Assert.AreEqual<String>(Host + "?" + Queue, destination.FullDestination); }
public void TestInvalidSignBetweenUrlAndParameter() { JmsDestination destination = new JmsDestination(Host + "!" + Queue); }
public void TestDestinationWhitInvalidParametInTheUrl() { JmsDestination destination = new JmsDestination(Url + "?Test?Test"); }
public void TestDestinationTypeWhereNoQuestionMarkIsIndicated() { JmsDestination destination = new JmsDestination(Url); }