aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-04-15 00:56:40 +0100
committerJustin Clark-Casey (justincc)2011-04-15 00:56:40 +0100
commitad70cddcfc48182f75be7643297cea2a9d20ac91 (patch)
treed712d6a45754026d7d196bd14c97fc11fe904492 /OpenSim
parentMake all the objects in a coalescence reappears after being loaded from an IA... (diff)
downloadopensim-SC-ad70cddcfc48182f75be7643297cea2a9d20ac91.zip
opensim-SC-ad70cddcfc48182f75be7643297cea2a9d20ac91.tar.gz
opensim-SC-ad70cddcfc48182f75be7643297cea2a9d20ac91.tar.bz2
opensim-SC-ad70cddcfc48182f75be7643297cea2a9d20ac91.tar.xz
extend TestLoadCoalesecedItem() to check loaded object ids and positions
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs
index f747c89..69c5dcd 100644
--- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs
@@ -86,8 +86,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
86 bool readResult = CoalescedSceneObjectsSerializer.TryFromXml(assetXml, out coa); 86 bool readResult = CoalescedSceneObjectsSerializer.TryFromXml(assetXml, out coa);
87 87
88 Assert.That(readResult, Is.True); 88 Assert.That(readResult, Is.True);
89 Assert.That(coa.Count, Is.EqualTo(2));
89 90
90 // TODO: Check that the loaded coalesence is valid and that the required scene object assets are around 91 List<SceneObjectGroup> coaObjects = coa.Objects;
92 Assert.That(coaObjects[0].UUID, Is.EqualTo(UUID.Parse("00000000-0000-0000-0000-000000000120")));
93 Assert.That(coaObjects[0].AbsolutePosition, Is.EqualTo(new Vector3(15, 30, 45)));
94
95 Assert.That(coaObjects[1].UUID, Is.EqualTo(UUID.Parse("00000000-0000-0000-0000-000000000140")));
96 Assert.That(coaObjects[1].AbsolutePosition, Is.EqualTo(new Vector3(25, 50, 75)));
91 } 97 }
92 98
93 /// <summary> 99 /// <summary>