Apache.NMS.Test.URISupportTest.TestParsingURI C# (CSharp) Method

TestParsingURI() private method

private TestParsingURI ( ) : void
return void
        public void TestParsingURI()
        {
            Uri source = new Uri("tcp://localhost:61626/foo/bar?cheese=Edam&x=123");

            StringDictionary map = URISupport.ParseParameters(source);

            Assert.AreEqual(2, map.Count, "Size: " + map);
            AssertMapKey(map, "cheese", "Edam");
            AssertMapKey(map, "x", "123");

            Uri result = URISupport.RemoveQuery(source);

            Assert.AreEqual(new Uri("tcp://localhost:61626/foo/bar"), result);
        }