예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void TestInvalidSignBetweenUrlAndParameter()
 {
     JmsDestination destination = new JmsDestination(Host + "!" + Queue);
 }
예제 #4
0
 public void TestDestinationWhitInvalidParametInTheUrl()
 {
     JmsDestination destination = new JmsDestination(Url + "?Test?Test");
 }
예제 #5
0
 public void TestDestinationTypeWhereNoQuestionMarkIsIndicated()
 {
     JmsDestination destination = new JmsDestination(Url);
 }