Ejemplo n.º 1
0
        public void TestRegister()
        {
            Matrix.Xmpp.Register.Register reg1 = XmppXElement.LoadXml(Resource.Get("Xmpp.Register.register_query1.xml")).Cast <Matrix.Xmpp.Register.Register>();

            Assert.Equal(reg1.Instructions, "instructions");
            Assert.Equal(reg1.Username, "");
            Assert.Equal(reg1.Password, "");
            Assert.Equal(reg1.Email, "");
            Assert.Equal(reg1.Remove, false);
            Assert.Equal(reg1.Misc, null);
        }
Ejemplo n.º 2
0
        public void TestRegister2()
        {
            Matrix.Xmpp.Register.Register reg1 = XmppXElement.LoadXml(Resource.Get("Xmpp.Register.register_query2.xml")).ShouldBeOfType <Matrix.Xmpp.Register.Register>();

            Assert.Equal(reg1.Instructions, "instructions");
            Assert.Equal(reg1.Username, "user");
            Assert.Equal(reg1.Password, "12345");
            Assert.Equal(reg1.Email, "*****@*****.**");
            Assert.Equal(reg1.Name, "name");
            Assert.Equal(reg1.First, "first");
            Assert.Equal(reg1.Last, "last");
            Assert.Equal(reg1.Nick, "nick");
            Assert.Equal(reg1.Misc, "misc");
            Assert.Equal(reg1.Remove, false);
        }
Ejemplo n.º 3
0
        public void TestRegister4()
        {
            Matrix.Xmpp.Register.Register reg1 = XmppXElement.LoadXml(Resource.Get("Xmpp.Register.register_query4.xml")).ShouldBeOfType <Matrix.Xmpp.Register.Register>();

            Assert.Equal(reg1.XData != null, true);
        }