public void TestBuildRegisterIq2() { var regIq = new RegisterIq { Type = IqType.Set, From = "[email protected]/globe", Id = "unreg1", Register = { Remove = true } }; regIq.ShouldBe(Resource.Get("Xmpp.Register.register_query7.xml")); }
public void TestBuildRegisterIq() { var riq = new RegisterIq { Id = "reg1", Type = IqType.Get }; riq.ShouldBe(Resource.Get("Xmpp.Register.register_query5.xml")); riq.Type = IqType.Result; riq.Register.Instructions = "Instructions"; riq.Register.Username = "******"; riq.Register.Password = "******"; riq.Register.Email = "*****@*****.**"; riq.ShouldBe(Resource.Get("Xmpp.Register.register_query6.xml")); }