public void ChatterBoxInvitationMessage()
{
ChatterBoxInvitationMessage s = new ChatterBoxInvitationMessage();
s.BinaryBucket = Utils.EmptyBytes;
s.Dialog = InstantMessageDialog.InventoryOffered;
s.FromAgentID = UUID.Random();
s.FromAgentName = "Prokofy Neva";
s.GroupIM = false;
s.IMSessionID = s.FromAgentID ^ UUID.Random();
s.Message = "Test Test Test";
s.Offline = InstantMessageOnline.Online;
s.ParentEstateID = 1;
s.Position = Vector3.One;
s.RegionID = UUID.Random();
s.Timestamp = DateTime.UtcNow;
s.ToAgentID = UUID.Random();
OSDMap map = s.Serialize();
ChatterBoxInvitationMessage t = new ChatterBoxInvitationMessage();
t.Deserialize(map);
Assert.AreEqual(s.BinaryBucket, t.BinaryBucket);
Assert.AreEqual(s.Dialog, t.Dialog);
Assert.AreEqual(s.FromAgentID, t.FromAgentID);
Assert.AreEqual(s.FromAgentName, t.FromAgentName);
Assert.AreEqual(s.GroupIM, t.GroupIM);
Assert.AreEqual(s.IMSessionID, t.IMSessionID);
Assert.AreEqual(s.Message, t.Message);
Assert.AreEqual(s.Offline, t.Offline);
Assert.AreEqual(s.ParentEstateID, t.ParentEstateID);
Assert.AreEqual(s.Position, t.Position);
Assert.AreEqual(s.RegionID, t.RegionID);
Assert.AreEqual(s.Timestamp, t.Timestamp);
Assert.AreEqual(s.ToAgentID, t.ToAgentID);
}