extend TestGetSceneObjectByPartLocalId() to test state after scene object deletion

remove-scene-viewer
Justin Clark-Casey (justincc) 2011-09-13 18:08:05 +01:00
parent 07ba28f1de
commit f09a90d8a7
1 changed files with 6 additions and 0 deletions

View File

@ -132,6 +132,12 @@ namespace OpenSim.Region.Framework.Scenes.Tests
// Test that we don't get back an object for a local id that doesn't exist
Assert.That(scene.GetGroupByPrim(999), Is.Null);
// Now delete the scene object and check again
scene.DeleteSceneObject(so, false);
Assert.That(scene.GetGroupByPrim(so.LocalId), Is.Null);
Assert.That(scene.GetGroupByPrim(parts[partsToTestCount - 1].LocalId), Is.Null);
}
/// <summary>