AgentCircuitDataTest.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSimulator Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. using System.Collections.Generic;
  28. using OpenMetaverse;
  29. using OpenMetaverse.StructuredData;
  30. using NUnit.Framework;
  31. using OpenSim.Tests.Common;
  32. namespace OpenSim.Framework.Tests
  33. {
  34. [TestFixture]
  35. public class AgentCircuitDataTest : OpenSimTestCase
  36. {
  37. private UUID AgentId;
  38. private AvatarAppearance AvAppearance;
  39. private byte[] VisualParams;
  40. private UUID BaseFolder;
  41. private string CapsPath;
  42. private Dictionary<ulong, string> ChildrenCapsPaths;
  43. private uint circuitcode = 0949030;
  44. private string firstname;
  45. private string lastname;
  46. private UUID SecureSessionId;
  47. private UUID SessionId;
  48. private Vector3 StartPos;
  49. [SetUp]
  50. public void setup()
  51. {
  52. AgentId = UUID.Random();
  53. BaseFolder = UUID.Random();
  54. CapsPath = "http://www.opensimulator.org/Caps/Foo";
  55. ChildrenCapsPaths = new Dictionary<ulong, string>();
  56. ChildrenCapsPaths.Add(ulong.MaxValue, "http://www.opensimulator.org/Caps/Foo2");
  57. firstname = "CoolAvatarTest";
  58. lastname = "test";
  59. StartPos = new Vector3(5,23,125);
  60. SecureSessionId = UUID.Random();
  61. SessionId = UUID.Random();
  62. AvAppearance = new AvatarAppearance();
  63. VisualParams = new byte[218];
  64. //body
  65. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HEIGHT] = 155;
  66. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_THICKNESS] = 00;
  67. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BODY_FAT] = 0;
  68. //Torso
  69. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_TORSO_MUSCLES] = 48;
  70. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_NECK_THICKNESS] = 43;
  71. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_NECK_LENGTH] = 255;
  72. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_SHOULDERS] = 94;
  73. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_CHEST_MALE_NO_PECS] = 199;
  74. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_ARM_LENGTH] = 255;
  75. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HAND_SIZE] = 33;
  76. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_TORSO_LENGTH] = 240;
  77. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LOVE_HANDLES] = 0;
  78. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BELLY_SIZE] = 0;
  79. // legs
  80. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LEG_MUSCLES] = 82;
  81. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LEG_LENGTH] = 255;
  82. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HIP_WIDTH] = 84;
  83. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HIP_LENGTH] = 166;
  84. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BUTT_SIZE] = 64;
  85. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_SADDLEBAGS] = 89;
  86. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BOWED_LEGS] = 127;
  87. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_FOOT_SIZE] = 45;
  88. // head
  89. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HEAD_SIZE] = 255;
  90. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_SQUASH_STRETCH_HEAD] = 0; // head stretch
  91. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HEAD_SHAPE] = 155;
  92. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EGG_HEAD] = 127;
  93. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_POINTY_EARS] = 255;
  94. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HEAD_LENGTH] = 45;
  95. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_FACE_SHEAR] = 127;
  96. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_FOREHEAD_ANGLE] = 104;
  97. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BIG_BROW] = 94;
  98. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_PUFFY_UPPER_CHEEKS] = 0; // upper cheeks
  99. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_DOUBLE_CHIN] = 122; // lower cheeks
  100. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HIGH_CHEEK_BONES] = 130;
  101. // eyes
  102. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EYE_SIZE] = 105;
  103. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_WIDE_EYES] = 135;
  104. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EYE_SPACING] = 184;
  105. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EYELID_CORNER_UP] = 230;
  106. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EYELID_INNER_CORNER_UP] = 120;
  107. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EYE_DEPTH] = 158;
  108. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_UPPER_EYELID_FOLD] = 69;
  109. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BAGGY_EYES] = 38;
  110. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EYELASHES_LONG] = 127;
  111. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_POP_EYE] = 127;
  112. VisualParams[(int)AvatarAppearance.VPElement.EYES_EYE_COLOR] = 25;
  113. VisualParams[(int)AvatarAppearance.VPElement.EYES_EYE_LIGHTNESS] = 127;
  114. // ears
  115. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BIG_EARS] = 255;
  116. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EARS_OUT] = 127;
  117. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_ATTACHED_EARLOBES] = 127;
  118. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_POINTY_EARS] = 255;
  119. // nose
  120. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_NOSE_BIG_OUT] = 79;
  121. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_WIDE_NOSE] = 35;
  122. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BROAD_NOSTRILS] = 86;
  123. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LOW_SEPTUM_NOSE] = 112; // nostril division
  124. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BULBOUS_NOSE] = 25;
  125. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_NOBLE_NOSE_BRIDGE] = 25; // upper bridge
  126. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LOWER_BRIDGE_NOSE] = 25; // lower bridge
  127. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_WIDE_NOSE_BRIDGE] = 25;
  128. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_UPTURNED_NOSE_TIP] = 107;
  129. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BULBOUS_NOSE_TIP] = 25;
  130. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_CROOKED_NOSE] = 127;
  131. // Mouth
  132. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LIP_WIDTH] = 122;
  133. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_TALL_LIPS] = 10; // lip fullness
  134. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LIP_THICKNESS] = 112;
  135. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LIP_RATIO] = 137;
  136. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_MOUTH_HEIGHT] = 176;
  137. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_MOUTH_CORNER] = 140; // Sad --> happy
  138. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LIP_CLEFT_DEEP] = 84;
  139. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_WIDE_LIP_CLEFT] = 84;
  140. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_SHIFT_MOUTH] = 127;
  141. // chin
  142. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_WEAK_CHIN] = 119;
  143. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_SQUARE_JAW] = 5;
  144. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_DEEP_CHIN] = 132;
  145. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_JAW_ANGLE] = 153;
  146. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_JAW_JUT] = 100;
  147. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_JOWLS] = 38;
  148. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_CLEFT_CHIN] = 89;
  149. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_CLEFT_CHIN_UPPER] = 89;
  150. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_DOUBLE_CHIN] = 0;
  151. // hair color
  152. VisualParams[(int)AvatarAppearance.VPElement.HAIR_WHITE_HAIR] = 0;
  153. VisualParams[(int)AvatarAppearance.VPElement.HAIR_RAINBOW_COLOR_39] = 0;
  154. VisualParams[(int)AvatarAppearance.VPElement.HAIR_BLONDE_HAIR] = 24;
  155. VisualParams[(int)AvatarAppearance.VPElement.HAIR_RED_HAIR] = 0;
  156. // hair style
  157. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_VOLUME] = 160;
  158. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_FRONT] = 153;
  159. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_SIDES] = 153;
  160. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_BACK] = 170;
  161. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_BIG_FRONT] = 0;
  162. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_BIG_TOP] = 117;
  163. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_BIG_BACK] = 170;
  164. VisualParams[(int)AvatarAppearance.VPElement.HAIR_FRONT_FRINGE] = 0;
  165. VisualParams[(int)AvatarAppearance.VPElement.HAIR_SIDE_FRINGE] = 142;
  166. VisualParams[(int)AvatarAppearance.VPElement.HAIR_BACK_FRINGE] = 0;
  167. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_SIDES_FULL] = 146;
  168. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_SWEEP] = 0;
  169. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_SHEAR_FRONT] = 0;
  170. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_SHEAR_BACK] = 0;
  171. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_TAPER_FRONT] = 0;
  172. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_TAPER_BACK] = 0;
  173. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_RUMPLED] = 0;
  174. VisualParams[(int)AvatarAppearance.VPElement.HAIR_PIGTAILS] = 0;
  175. VisualParams[(int)AvatarAppearance.VPElement.HAIR_PONYTAIL] = 0;
  176. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_SPIKED] = 0;
  177. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_TILT] = 0;
  178. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_PART_MIDDLE] = 0;
  179. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_PART_RIGHT] = 0;
  180. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_PART_LEFT] = 0;
  181. VisualParams[(int)AvatarAppearance.VPElement.HAIR_BANGS_PART_MIDDLE] = 155;
  182. //Eyebrows
  183. VisualParams[(int)AvatarAppearance.VPElement.HAIR_EYEBROW_SIZE] = 20;
  184. VisualParams[(int)AvatarAppearance.VPElement.HAIR_EYEBROW_DENSITY] = 140;
  185. VisualParams[(int)AvatarAppearance.VPElement.HAIR_LOWER_EYEBROWS] = 200; // eyebrow height
  186. VisualParams[(int)AvatarAppearance.VPElement.HAIR_ARCED_EYEBROWS] = 124;
  187. VisualParams[(int)AvatarAppearance.VPElement.HAIR_POINTY_EYEBROWS] = 65;
  188. //Facial hair
  189. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_THICKNESS] = 65;
  190. VisualParams[(int)AvatarAppearance.VPElement.HAIR_SIDEBURNS] = 235;
  191. VisualParams[(int)AvatarAppearance.VPElement.HAIR_MOUSTACHE] = 75;
  192. VisualParams[(int)AvatarAppearance.VPElement.HAIR_CHIN_CURTAINS] = 140;
  193. VisualParams[(int)AvatarAppearance.VPElement.HAIR_SOULPATCH] = 0;
  194. AvAppearance.VisualParams = VisualParams;
  195. AvAppearance.SetAppearance(AvAppearance.Texture, (byte[])VisualParams.Clone());
  196. }
  197. /// <summary>
  198. /// Test to ensure that the serialization format is the same and the underlying types don't change without notice
  199. /// oldSerialization is just a json serialization of the OSDMap packed for the AgentCircuitData.
  200. /// The idea is that if the current json serializer cannot parse the old serialization, then the underlying types
  201. /// have changed and are incompatible.
  202. /// </summary>
  203. [Test]
  204. public void HistoricalAgentCircuitDataOSDConversion()
  205. {
  206. string oldSerialization = "{\"agent_id\":\"522675bd-8214-40c1-b3ca-9c7f7fd170be\",\"base_folder\":\"c40b5f5f-476f-496b-bd69-b5a539c434d8\",\"caps_path\":\"http://www.opensimulator.org/Caps/Foo\",\"children_seeds\":[{\"handle\":\"18446744073709551615\",\"seed\":\"http://www.opensimulator.org/Caps/Foo2\"}],\"child\":false,\"circuit_code\":\"949030\",\"first_name\":\"CoolAvatarTest\",\"last_name\":\"test\",\"inventory_folder\":\"c40b5f5f-476f-496b-bd69-b5a539c434d8\",\"secure_session_id\":\"1e608e2b-0ddb-41f6-be0f-926f61cd3e0a\",\"session_id\":\"aa06f798-9d70-4bdb-9bbf-012a02ee2baf\",\"start_pos\":\"<5, 23, 125>\"}";
  207. AgentCircuitData Agent1Data = new AgentCircuitData();
  208. Agent1Data.AgentID = new UUID("522675bd-8214-40c1-b3ca-9c7f7fd170be");
  209. Agent1Data.Appearance = AvAppearance;
  210. Agent1Data.BaseFolder = new UUID("c40b5f5f-476f-496b-bd69-b5a539c434d8");
  211. Agent1Data.CapsPath = CapsPath;
  212. Agent1Data.child = false;
  213. Agent1Data.ChildrenCapSeeds = ChildrenCapsPaths;
  214. Agent1Data.circuitcode = circuitcode;
  215. Agent1Data.firstname = firstname;
  216. Agent1Data.InventoryFolder = new UUID("c40b5f5f-476f-496b-bd69-b5a539c434d8");
  217. Agent1Data.lastname = lastname;
  218. Agent1Data.SecureSessionID = new UUID("1e608e2b-0ddb-41f6-be0f-926f61cd3e0a");
  219. Agent1Data.SessionID = new UUID("aa06f798-9d70-4bdb-9bbf-012a02ee2baf");
  220. Agent1Data.startpos = StartPos;
  221. OSDMap map2;
  222. try
  223. {
  224. map2 = (OSDMap) OSDParser.DeserializeJson(oldSerialization);
  225. AgentCircuitData Agent2Data = new AgentCircuitData();
  226. Agent2Data.UnpackAgentCircuitData(map2);
  227. Assert.That((Agent1Data.AgentID == Agent2Data.AgentID));
  228. Assert.That((Agent1Data.BaseFolder == Agent2Data.BaseFolder));
  229. Assert.That((Agent1Data.CapsPath == Agent2Data.CapsPath));
  230. Assert.That((Agent1Data.child == Agent2Data.child));
  231. Assert.That((Agent1Data.ChildrenCapSeeds.Count == Agent2Data.ChildrenCapSeeds.Count));
  232. Assert.That((Agent1Data.circuitcode == Agent2Data.circuitcode));
  233. Assert.That((Agent1Data.firstname == Agent2Data.firstname));
  234. Assert.That((Agent1Data.InventoryFolder == Agent2Data.InventoryFolder));
  235. Assert.That((Agent1Data.lastname == Agent2Data.lastname));
  236. Assert.That((Agent1Data.SecureSessionID == Agent2Data.SecureSessionID));
  237. Assert.That((Agent1Data.SessionID == Agent2Data.SessionID));
  238. Assert.That((Agent1Data.startpos == Agent2Data.startpos));
  239. }
  240. catch (LitJson.JsonException)
  241. {
  242. //intermittant litjson errors :P
  243. Assert.That(1 == 1);
  244. }
  245. /*
  246. Enable this once VisualParams go in the packing method
  247. for (int i=0;i<208;i++)
  248. Assert.That((Agent1Data.Appearance.VisualParams[i] == Agent2Data.Appearance.VisualParams[i]));
  249. */
  250. }
  251. /// <summary>
  252. /// Test to ensure that the packing and unpacking methods work.
  253. /// </summary>
  254. [Test]
  255. public void TestAgentCircuitDataOSDConversion()
  256. {
  257. AgentCircuitData Agent1Data = new AgentCircuitData();
  258. Agent1Data.AgentID = AgentId;
  259. Agent1Data.Appearance = AvAppearance;
  260. Agent1Data.BaseFolder = BaseFolder;
  261. Agent1Data.CapsPath = CapsPath;
  262. Agent1Data.child = false;
  263. Agent1Data.ChildrenCapSeeds = ChildrenCapsPaths;
  264. Agent1Data.circuitcode = circuitcode;
  265. Agent1Data.firstname = firstname;
  266. Agent1Data.InventoryFolder = BaseFolder;
  267. Agent1Data.lastname = lastname;
  268. Agent1Data.SecureSessionID = SecureSessionId;
  269. Agent1Data.SessionID = SessionId;
  270. Agent1Data.startpos = StartPos;
  271. EntityTransferContext ctx = new EntityTransferContext();
  272. OSDMap map2;
  273. OSDMap map = Agent1Data.PackAgentCircuitData(ctx);
  274. try
  275. {
  276. string str = OSDParser.SerializeJsonString(map);
  277. //System.Console.WriteLine(str);
  278. map2 = (OSDMap) OSDParser.DeserializeJson(str);
  279. }
  280. catch (System.NullReferenceException)
  281. {
  282. //spurious litjson errors :P
  283. map2 = map;
  284. Assert.That(1==1);
  285. return;
  286. }
  287. AgentCircuitData Agent2Data = new AgentCircuitData();
  288. Agent2Data.UnpackAgentCircuitData(map2);
  289. Assert.That((Agent1Data.AgentID == Agent2Data.AgentID));
  290. Assert.That((Agent1Data.BaseFolder == Agent2Data.BaseFolder));
  291. Assert.That((Agent1Data.CapsPath == Agent2Data.CapsPath));
  292. Assert.That((Agent1Data.child == Agent2Data.child));
  293. Assert.That((Agent1Data.ChildrenCapSeeds.Count == Agent2Data.ChildrenCapSeeds.Count));
  294. Assert.That((Agent1Data.circuitcode == Agent2Data.circuitcode));
  295. Assert.That((Agent1Data.firstname == Agent2Data.firstname));
  296. Assert.That((Agent1Data.InventoryFolder == Agent2Data.InventoryFolder));
  297. Assert.That((Agent1Data.lastname == Agent2Data.lastname));
  298. Assert.That((Agent1Data.SecureSessionID == Agent2Data.SecureSessionID));
  299. Assert.That((Agent1Data.SessionID == Agent2Data.SessionID));
  300. Assert.That((Agent1Data.startpos == Agent2Data.startpos));
  301. /*
  302. Enable this once VisualParams go in the packing method
  303. for (int i = 0; i < 208; i++)
  304. Assert.That((Agent1Data.Appearance.VisualParams[i] == Agent2Data.Appearance.VisualParams[i]));
  305. */
  306. }
  307. }
  308. }