aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-01-12 20:47:19 +0000
committerJustin Clark-Casey (justincc)2012-01-12 20:47:19 +0000
commit1ac5aa68087910dbb3cdfc141d77a95eb89177fa (patch)
tree7faf9c8e1f4f2f3a4af3e588681dc8e0f874188e /OpenSim/Region
parentAdd osNpcCreate(string firstname, string lastname, LSL_Vector position, strin... (diff)
downloadopensim-SC_OLD-1ac5aa68087910dbb3cdfc141d77a95eb89177fa.zip
opensim-SC_OLD-1ac5aa68087910dbb3cdfc141d77a95eb89177fa.tar.gz
opensim-SC_OLD-1ac5aa68087910dbb3cdfc141d77a95eb89177fa.tar.bz2
opensim-SC_OLD-1ac5aa68087910dbb3cdfc141d77a95eb89177fa.tar.xz
Add remove test for unowned avatars
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
index 571d33d..d21d601 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
@@ -119,6 +119,26 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
119 } 119 }
120 120
121 [Test] 121 [Test]
122 public void TestRemove()
123 {
124 TestHelpers.InMethod();
125// log4net.Config.XmlConfigurator.Configure();
126
127 ScenePresence sp = SceneHelpers.AddScenePresence(scene, TestHelpers.ParseTail(0x1));
128// ScenePresence originalAvatar = scene.GetScenePresence(originalClient.AgentId);
129
130 Vector3 startPos = new Vector3(128, 128, 30);
131 INPCModule npcModule = scene.RequestModuleInterface<INPCModule>();
132 UUID npcId = npcModule.CreateNPC("John", "Smith", startPos, UUID.Zero, scene, sp.Appearance);
133
134 npcModule.DeleteNPC(npcId, scene);
135
136 ScenePresence deletedNpc = scene.GetScenePresence(npcId);
137
138 Assert.That(deletedNpc, Is.Null);
139 }
140
141 [Test]
122 public void TestAttachments() 142 public void TestAttachments()
123 { 143 {
124 TestHelpers.InMethod(); 144 TestHelpers.InMethod();