Exemple #1
0
        public void GetHashCodeDiffParamOrderURIUnitTest()
        {
            Console.WriteLine("--> " + System.Reflection.MethodBase.GetCurrentMethod().Name);

            SIPURI sipURI1 = SIPURI.ParseSIPURI("sip:[email protected];key2=value2;key1=value1");
            SIPURI sipURI2 = SIPURI.ParseSIPURI("sip:[email protected];key1=value1;key2=value2");

            Assert.AreEqual(sipURI1.GetHashCode(), sipURI2.GetHashCode(), "The SIP URIs did not have equal hash codes.");

            Console.WriteLine("-----------------------------------------");
        }