AgentCircuitDataTest.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  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. namespace OpenSim.Framework.Tests
  32. {
  33. [TestFixture]
  34. public class AgentCircuitDataTest
  35. {
  36. private UUID AgentId;
  37. private AvatarAppearance AvAppearance;
  38. private byte[] VisualParams;
  39. private UUID BaseFolder;
  40. private string CapsPath;
  41. private Dictionary<ulong, string> ChildrenCapsPaths;
  42. private uint circuitcode = 0949030;
  43. private string firstname;
  44. private string lastname;
  45. private UUID SecureSessionId;
  46. private UUID SessionId;
  47. private Vector3 StartPos;
  48. [SetUp]
  49. public void setup()
  50. {
  51. AgentId = UUID.Random();
  52. BaseFolder = UUID.Random();
  53. CapsPath = "http://www.opensimulator.org/Caps/Foo";
  54. ChildrenCapsPaths = new Dictionary<ulong, string>();
  55. ChildrenCapsPaths.Add(ulong.MaxValue, "http://www.opensimulator.org/Caps/Foo2");
  56. firstname = "CoolAvatarTest";
  57. lastname = "test";
  58. StartPos = new Vector3(5,23,125);
  59. SecureSessionId = UUID.Random();
  60. SessionId = UUID.Random();
  61. AvAppearance = new AvatarAppearance(AgentId);
  62. AvAppearance.SetDefaultWearables();
  63. VisualParams = new byte[218];
  64. AvAppearance.SetDefaultParams(VisualParams);
  65. //body
  66. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HEIGHT] = 155;
  67. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_THICKNESS] = 00;
  68. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BODY_FAT] = 0;
  69. //Torso
  70. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_TORSO_MUSCLES] = 48;
  71. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_NECK_THICKNESS] = 43;
  72. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_NECK_LENGTH] = 255;
  73. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_SHOULDERS] = 94;
  74. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_CHEST_MALE_NO_PECS] = 199;
  75. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_ARM_LENGTH] = 255;
  76. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HAND_SIZE] = 33;
  77. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_TORSO_LENGTH] = 240;
  78. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LOVE_HANDLES] = 0;
  79. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BELLY_SIZE] = 0;
  80. // legs
  81. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LEG_MUSCLES] = 82;
  82. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LEG_LENGTH] = 255;
  83. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HIP_WIDTH] = 84;
  84. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HIP_LENGTH] = 166;
  85. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BUTT_SIZE] = 64;
  86. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_SADDLEBAGS] = 89;
  87. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BOWED_LEGS] = 127;
  88. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_FOOT_SIZE] = 45;
  89. // head
  90. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HEAD_SIZE] = 255;
  91. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_SQUASH_STRETCH_HEAD] = 0; // head stretch
  92. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HEAD_SHAPE] = 155;
  93. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EGG_HEAD] = 127;
  94. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_POINTY_EARS] = 255;
  95. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HEAD_LENGTH] = 45;
  96. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_FACE_SHEAR] = 127;
  97. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_FOREHEAD_ANGLE] = 104;
  98. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BIG_BROW] = 94;
  99. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_PUFFY_UPPER_CHEEKS] = 0; // upper cheeks
  100. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_DOUBLE_CHIN] = 122; // lower cheeks
  101. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_HIGH_CHEEK_BONES] = 130;
  102. // eyes
  103. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EYE_SIZE] = 105;
  104. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_WIDE_EYES] = 135;
  105. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EYE_SPACING] = 184;
  106. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EYELID_CORNER_UP] = 230;
  107. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EYELID_INNER_CORNER_UP] = 120;
  108. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EYE_DEPTH] = 158;
  109. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_UPPER_EYELID_FOLD] = 69;
  110. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BAGGY_EYES] = 38;
  111. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EYELASHES_LONG] = 127;
  112. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_POP_EYE] = 127;
  113. VisualParams[(int)AvatarAppearance.VPElement.EYES_EYE_COLOR] = 25;
  114. VisualParams[(int)AvatarAppearance.VPElement.EYES_EYE_LIGHTNESS] = 127;
  115. // ears
  116. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BIG_EARS] = 255;
  117. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_EARS_OUT] = 127;
  118. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_ATTACHED_EARLOBES] = 127;
  119. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_POINTY_EARS] = 255;
  120. // nose
  121. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_NOSE_BIG_OUT] = 79;
  122. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_WIDE_NOSE] = 35;
  123. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BROAD_NOSTRILS] = 86;
  124. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LOW_SEPTUM_NOSE] = 112; // nostril division
  125. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BULBOUS_NOSE] = 25;
  126. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_NOBLE_NOSE_BRIDGE] = 25; // upper bridge
  127. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LOWER_BRIDGE_NOSE] = 25; // lower bridge
  128. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_WIDE_NOSE_BRIDGE] = 25;
  129. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_UPTURNED_NOSE_TIP] = 107;
  130. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_BULBOUS_NOSE_TIP] = 25;
  131. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_CROOKED_NOSE] = 127;
  132. // Mouth
  133. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LIP_WIDTH] = 122;
  134. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_TALL_LIPS] = 10; // lip fullness
  135. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LIP_THICKNESS] = 112;
  136. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LIP_RATIO] = 137;
  137. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_MOUTH_HEIGHT] = 176;
  138. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_MOUTH_CORNER] = 140; // Sad --> happy
  139. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_LIP_CLEFT_DEEP] = 84;
  140. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_WIDE_LIP_CLEFT] = 84;
  141. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_SHIFT_MOUTH] = 127;
  142. // chin
  143. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_WEAK_CHIN] = 119;
  144. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_SQUARE_JAW] = 5;
  145. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_DEEP_CHIN] = 132;
  146. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_JAW_ANGLE] = 153;
  147. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_JAW_JUT] = 100;
  148. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_JOWLS] = 38;
  149. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_CLEFT_CHIN] = 89;
  150. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_CLEFT_CHIN_UPPER] = 89;
  151. VisualParams[(int)AvatarAppearance.VPElement.SHAPE_DOUBLE_CHIN] = 0;
  152. // hair color
  153. VisualParams[(int)AvatarAppearance.VPElement.HAIR_WHITE_HAIR] = 0;
  154. VisualParams[(int)AvatarAppearance.VPElement.HAIR_RAINBOW_COLOR_39] = 0;
  155. VisualParams[(int)AvatarAppearance.VPElement.HAIR_BLONDE_HAIR] = 24;
  156. VisualParams[(int)AvatarAppearance.VPElement.HAIR_RED_HAIR] = 0;
  157. // hair style
  158. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_VOLUME] = 160;
  159. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_FRONT] = 153;
  160. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_SIDES] = 153;
  161. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_BACK] = 170;
  162. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_BIG_FRONT] = 0;
  163. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_BIG_TOP] = 117;
  164. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_BIG_BACK] = 170;
  165. VisualParams[(int)AvatarAppearance.VPElement.HAIR_FRONT_FRINGE] = 0;
  166. VisualParams[(int)AvatarAppearance.VPElement.HAIR_SIDE_FRINGE] = 142;
  167. VisualParams[(int)AvatarAppearance.VPElement.HAIR_BACK_FRINGE] = 0;
  168. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_SIDES_FULL] = 146;
  169. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_SWEEP] = 0;
  170. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_SHEAR_FRONT] = 0;
  171. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_SHEAR_BACK] = 0;
  172. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_TAPER_FRONT] = 0;
  173. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_TAPER_BACK] = 0;
  174. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_RUMPLED] = 0;
  175. VisualParams[(int)AvatarAppearance.VPElement.HAIR_PIGTAILS] = 0;
  176. VisualParams[(int)AvatarAppearance.VPElement.HAIR_PONYTAIL] = 0;
  177. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_SPIKED] = 0;
  178. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_TILT] = 0;
  179. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_PART_MIDDLE] = 0;
  180. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_PART_RIGHT] = 0;
  181. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_PART_LEFT] = 0;
  182. VisualParams[(int)AvatarAppearance.VPElement.HAIR_BANGS_PART_MIDDLE] = 155;
  183. //Eyebrows
  184. VisualParams[(int)AvatarAppearance.VPElement.HAIR_EYEBROW_SIZE] = 20;
  185. VisualParams[(int)AvatarAppearance.VPElement.HAIR_EYEBROW_DENSITY] = 140;
  186. VisualParams[(int)AvatarAppearance.VPElement.HAIR_LOWER_EYEBROWS] = 200; // eyebrow height
  187. VisualParams[(int)AvatarAppearance.VPElement.HAIR_ARCED_EYEBROWS] = 124;
  188. VisualParams[(int)AvatarAppearance.VPElement.HAIR_POINTY_EYEBROWS] = 65;
  189. //Facial hair
  190. VisualParams[(int)AvatarAppearance.VPElement.HAIR_HAIR_THICKNESS] = 65;
  191. VisualParams[(int)AvatarAppearance.VPElement.HAIR_SIDEBURNS] = 235;
  192. VisualParams[(int)AvatarAppearance.VPElement.HAIR_MOUSTACHE] = 75;
  193. VisualParams[(int)AvatarAppearance.VPElement.HAIR_CHIN_CURTAINS] = 140;
  194. VisualParams[(int)AvatarAppearance.VPElement.HAIR_SOULPATCH] = 0;
  195. AvAppearance.VisualParams = VisualParams;
  196. List<byte> wearbyte = new List<byte>();
  197. for (int i = 0; i < VisualParams.Length; i++)
  198. {
  199. wearbyte.Add(VisualParams[i]);
  200. }
  201. AvAppearance.SetAppearance(AvAppearance.Texture.GetBytes(), wearbyte);
  202. }
  203. /// <summary>
  204. /// Test to ensure that the serialization format is the same and the underlying types don't change without notice
  205. /// oldSerialization is just a json serialization of the OSDMap packed for the AgentCircuitData.
  206. /// The idea is that if the current json serializer cannot parse the old serialization, then the underlying types
  207. /// have changed and are incompatible.
  208. /// </summary>
  209. [Test]
  210. public void HistoricalAgentCircuitDataOSDConversion()
  211. {
  212. 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>\"}";
  213. AgentCircuitData Agent1Data = new AgentCircuitData();
  214. Agent1Data.AgentID = new UUID("522675bd-8214-40c1-b3ca-9c7f7fd170be");
  215. Agent1Data.Appearance = AvAppearance;
  216. Agent1Data.BaseFolder = new UUID("c40b5f5f-476f-496b-bd69-b5a539c434d8");
  217. Agent1Data.CapsPath = CapsPath;
  218. Agent1Data.child = false;
  219. Agent1Data.ChildrenCapSeeds = ChildrenCapsPaths;
  220. Agent1Data.circuitcode = circuitcode;
  221. Agent1Data.firstname = firstname;
  222. Agent1Data.InventoryFolder = new UUID("c40b5f5f-476f-496b-bd69-b5a539c434d8");
  223. Agent1Data.lastname = lastname;
  224. Agent1Data.SecureSessionID = new UUID("1e608e2b-0ddb-41f6-be0f-926f61cd3e0a");
  225. Agent1Data.SessionID = new UUID("aa06f798-9d70-4bdb-9bbf-012a02ee2baf");
  226. Agent1Data.startpos = StartPos;
  227. OSDMap map2;
  228. try
  229. {
  230. map2 = (OSDMap) OSDParser.DeserializeJson(oldSerialization);
  231. AgentCircuitData Agent2Data = new AgentCircuitData();
  232. Agent2Data.UnpackAgentCircuitData(map2);
  233. Assert.That((Agent1Data.AgentID == Agent2Data.AgentID));
  234. Assert.That((Agent1Data.BaseFolder == Agent2Data.BaseFolder));
  235. Assert.That((Agent1Data.CapsPath == Agent2Data.CapsPath));
  236. Assert.That((Agent1Data.child == Agent2Data.child));
  237. Assert.That((Agent1Data.ChildrenCapSeeds.Count == Agent2Data.ChildrenCapSeeds.Count));
  238. Assert.That((Agent1Data.circuitcode == Agent2Data.circuitcode));
  239. Assert.That((Agent1Data.firstname == Agent2Data.firstname));
  240. Assert.That((Agent1Data.InventoryFolder == Agent2Data.InventoryFolder));
  241. Assert.That((Agent1Data.lastname == Agent2Data.lastname));
  242. Assert.That((Agent1Data.SecureSessionID == Agent2Data.SecureSessionID));
  243. Assert.That((Agent1Data.SessionID == Agent2Data.SessionID));
  244. Assert.That((Agent1Data.startpos == Agent2Data.startpos));
  245. }
  246. catch (LitJson.JsonException)
  247. {
  248. //intermittant litjson errors :P
  249. Assert.That(1 == 1);
  250. }
  251. /*
  252. Enable this once VisualParams go in the packing method
  253. for (int i=0;i<208;i++)
  254. Assert.That((Agent1Data.Appearance.VisualParams[i] == Agent2Data.Appearance.VisualParams[i]));
  255. */
  256. }
  257. /// <summary>
  258. /// Test to ensure that the packing and unpacking methods work.
  259. /// </summary>
  260. [Test]
  261. public void TestAgentCircuitDataOSDConversion()
  262. {
  263. AgentCircuitData Agent1Data = new AgentCircuitData();
  264. Agent1Data.AgentID = AgentId;
  265. Agent1Data.Appearance = AvAppearance;
  266. Agent1Data.BaseFolder = BaseFolder;
  267. Agent1Data.CapsPath = CapsPath;
  268. Agent1Data.child = false;
  269. Agent1Data.ChildrenCapSeeds = ChildrenCapsPaths;
  270. Agent1Data.circuitcode = circuitcode;
  271. Agent1Data.firstname = firstname;
  272. Agent1Data.InventoryFolder = BaseFolder;
  273. Agent1Data.lastname = lastname;
  274. Agent1Data.SecureSessionID = SecureSessionId;
  275. Agent1Data.SessionID = SessionId;
  276. Agent1Data.startpos = StartPos;
  277. OSDMap map2;
  278. OSDMap map = Agent1Data.PackAgentCircuitData();
  279. try
  280. {
  281. string str = OSDParser.SerializeJsonString(map);
  282. //System.Console.WriteLine(str);
  283. map2 = (OSDMap) OSDParser.DeserializeJson(str);
  284. }
  285. catch (System.NullReferenceException)
  286. {
  287. //spurious litjson errors :P
  288. map2 = map;
  289. }
  290. AgentCircuitData Agent2Data = new AgentCircuitData();
  291. Agent2Data.UnpackAgentCircuitData(map2);
  292. Assert.That((Agent1Data.AgentID == Agent2Data.AgentID));
  293. Assert.That((Agent1Data.BaseFolder == Agent2Data.BaseFolder));
  294. Assert.That((Agent1Data.CapsPath == Agent2Data.CapsPath));
  295. Assert.That((Agent1Data.child == Agent2Data.child));
  296. Assert.That((Agent1Data.ChildrenCapSeeds.Count == Agent2Data.ChildrenCapSeeds.Count));
  297. Assert.That((Agent1Data.circuitcode == Agent2Data.circuitcode));
  298. Assert.That((Agent1Data.firstname == Agent2Data.firstname));
  299. Assert.That((Agent1Data.InventoryFolder == Agent2Data.InventoryFolder));
  300. Assert.That((Agent1Data.lastname == Agent2Data.lastname));
  301. Assert.That((Agent1Data.SecureSessionID == Agent2Data.SecureSessionID));
  302. Assert.That((Agent1Data.SessionID == Agent2Data.SessionID));
  303. Assert.That((Agent1Data.startpos == Agent2Data.startpos));
  304. /*
  305. Enable this once VisualParams go in the packing method
  306. for (int i = 0; i < 208; i++)
  307. Assert.That((Agent1Data.Appearance.VisualParams[i] == Agent2Data.Appearance.VisualParams[i]));
  308. */
  309. }
  310. }
  311. }