Beispiel #1
0
        public void NewXIDFromString()
        {
            var id = new JID("[email protected]/home");

            Assert.That(id.User, Is.EqualTo("testing"));
            Assert.That(id.Server, Is.EqualTo("jabber.org"));
            Assert.That(id.Resource, Is.EqualTo("home"));
        }
Beispiel #2
0
        public void EscapeUsernameFromString()
        {
            var id = new JID("d'[email protected]/testing");

            Assert.That(id.ToString(), Is.EqualTo(@"d\[email protected]/testing"));
        }