Example #1
0
        public void CompareJidTest2()
        {
            var a = new Jid("User1", "Server.com", "Res01");
            var b = new Jid("[email protected]/Res01");

            Assert.True(a.CompareTo(b) == 0);
        }
Example #2
0
        public void CompareJidTest3()
        {
            var a = new Jid("User1", "Server.com", "Res01");
            var b = new Jid("[email protected]/Res01");
            var c = new Jid(b.User, b.Server, b.Resource);

            Assert.True(a.CompareTo(c) == 0);
            Assert.True(b.CompareTo(c) != 0);
        }
Example #3
0
        public void CompareJidTest1()
        {
            var a = new Jid("User1", "Server.com", "Res01");
            var b = new Jid("[email protected]/Res01");

            var c = new Jid("[email protected]/Res01", true);

            Assert.True(a.CompareTo(b) != 0);
        }
Example #4
0
 public int CompareTo(object obj)
 {
     return(_jid.CompareTo(obj));
 }