extend TestNewSceneObjectLinkPersistence() to check for presence of non-root linked prim

viewer-2-initial-appearance
Justin Clark-Casey (justincc) 2010-09-06 23:06:23 +01:00
parent 953b7f4917
commit 537fefa3f2
1 changed files with 3 additions and 2 deletions

View File

@ -293,10 +293,11 @@ namespace OpenSim.Region.Framework.Scenes.Tests
scene.Backup(true); scene.Backup(true);
List<SceneObjectGroup> storedObjects = scene.StorageManager.DataStore.LoadObjects(scene.RegionInfo.RegionID); List<SceneObjectGroup> storedObjects = scene.StorageManager.DataStore.LoadObjects(scene.RegionInfo.RegionID);
Assert.That(storedObjects.Count, Is.EqualTo(1)); Assert.That(storedObjects.Count, Is.EqualTo(1));
Assert.That(storedObjects[0].Children.Count, Is.EqualTo(2)); Assert.That(storedObjects[0].Children.Count, Is.EqualTo(2));
Assert.That(storedObjects[0].RootPart.UUID, Is.EqualTo(rootPartUuid)); Assert.That(storedObjects[0].Children.ContainsKey(rootPartUuid));
// TODO: assertion for child prim Assert.That(storedObjects[0].Children.ContainsKey(linkPartUuid));
} }
/// <summary> /// <summary>