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

TestCreateWithQuery() private method

private TestCreateWithQuery ( ) : void
return void
        public void TestCreateWithQuery()
        {
            Uri source = new Uri("vm://localhost");
            Uri dest = URISupport.CreateUriWithQuery(source, "network=true&one=two");

            Assert.AreEqual(2, URISupport.ParseParameters(dest).Count, "correct param count");
            Assert.AreEqual(source.Host, dest.Host, "same uri, host");
            Assert.AreEqual(source.Scheme, dest.Scheme, "same uri, scheme");
            Assert.IsFalse(dest.Query.Equals(source.Query), "same uri, ssp");
        }