diff options
author | Justin Clarke Casey | 2008-11-12 20:35:35 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-11-12 20:35:35 +0000 |
commit | 2c7ac336500cb3b02f42ea47934cc11b31ac397f (patch) | |
tree | 7a01eaa5cec5ee1ab456d4959a331edda27b83ae /OpenSim/Region/Environment/Scenes/Tests | |
parent | * refactor: as per a recent opensim-dev thread, rename InnerScene to SceneGra... (diff) | |
download | opensim-SC-2c7ac336500cb3b02f42ea47934cc11b31ac397f.zip opensim-SC-2c7ac336500cb3b02f42ea47934cc11b31ac397f.tar.gz opensim-SC-2c7ac336500cb3b02f42ea47934cc11b31ac397f.tar.bz2 opensim-SC-2c7ac336500cb3b02f42ea47934cc11b31ac397f.tar.xz |
* test: Add basic synchronous object remove test
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Tests')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs index c5bb9aa..ba03bfc 100644 --- a/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs +++ b/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs | |||
@@ -107,12 +107,18 @@ namespace OpenSim.Region.Environment.Scenes.Tests | |||
107 | Assert.That(retrievedPart.UUID, Is.EqualTo(part.UUID)); | 107 | Assert.That(retrievedPart.UUID, Is.EqualTo(part.UUID)); |
108 | } | 108 | } |
109 | 109 | ||
110 | /* | 110 | /// <summary> |
111 | /// Test removing an object from a scene. | ||
112 | /// </summary> | ||
111 | public void TestRemoveSceneObject() | 113 | public void TestRemoveSceneObject() |
112 | { | 114 | { |
113 | Scene scene = SetupScene(); | 115 | TestScene scene = SetupScene();; |
114 | SceneObjectPart part = AddSceneObject(scene); | 116 | SceneObjectPart part = AddSceneObject(scene); |
117 | scene.DeleteSceneObject(part.ParentGroup, false); | ||
118 | |||
119 | SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId); | ||
120 | |||
121 | Assert.That(retrievedPart, Is.Null); | ||
115 | } | 122 | } |
116 | */ | ||
117 | } | 123 | } |
118 | } \ No newline at end of file | 124 | } \ No newline at end of file |