diff options
author | Justin Clark-Casey (justincc) | 2010-09-06 23:06:23 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-09-06 23:06:23 +0100 |
commit | 537fefa3f20d23b122317ccd87e3b436cadc5b00 (patch) | |
tree | d92228e640ccbc58a355bf0282bf9a570d81667b /OpenSim/Region/Framework/Scenes/Tests | |
parent | Add test to check persistence of newly added pre-linked objects (diff) | |
download | opensim-SC_OLD-537fefa3f20d23b122317ccd87e3b436cadc5b00.zip opensim-SC_OLD-537fefa3f20d23b122317ccd87e3b436cadc5b00.tar.gz opensim-SC_OLD-537fefa3f20d23b122317ccd87e3b436cadc5b00.tar.bz2 opensim-SC_OLD-537fefa3f20d23b122317ccd87e3b436cadc5b00.tar.xz |
extend TestNewSceneObjectLinkPersistence() to check for presence of non-root linked prim
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/SceneObjectLinkingTests.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectLinkingTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectLinkingTests.cs index bfed204..bddb285 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectLinkingTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectLinkingTests.cs | |||
@@ -293,10 +293,11 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
293 | scene.Backup(true); | 293 | scene.Backup(true); |
294 | 294 | ||
295 | List<SceneObjectGroup> storedObjects = scene.StorageManager.DataStore.LoadObjects(scene.RegionInfo.RegionID); | 295 | List<SceneObjectGroup> storedObjects = scene.StorageManager.DataStore.LoadObjects(scene.RegionInfo.RegionID); |
296 | |||
296 | Assert.That(storedObjects.Count, Is.EqualTo(1)); | 297 | Assert.That(storedObjects.Count, Is.EqualTo(1)); |
297 | Assert.That(storedObjects[0].Children.Count, Is.EqualTo(2)); | 298 | Assert.That(storedObjects[0].Children.Count, Is.EqualTo(2)); |
298 | Assert.That(storedObjects[0].RootPart.UUID, Is.EqualTo(rootPartUuid)); | 299 | Assert.That(storedObjects[0].Children.ContainsKey(rootPartUuid)); |
299 | // TODO: assertion for child prim | 300 | Assert.That(storedObjects[0].Children.ContainsKey(linkPartUuid)); |
300 | } | 301 | } |
301 | 302 | ||
302 | /// <summary> | 303 | /// <summary> |