aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
diff options
context:
space:
mode:
authorBlueWall2012-01-12 21:06:27 -0500
committerBlueWall2012-01-12 21:06:27 -0500
commitacbff305f5a9b96dcd0b1534e165f3184a2cfe33 (patch)
tree477e5515a242880b35bf108e4b74241820eb27d3 /OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
parentMove some interfaces to a more apropriate place (diff)
parentChange the default osNpcCreate() to create an 'owned' npc rather than an 'uno... (diff)
downloadopensim-SC_OLD-acbff305f5a9b96dcd0b1534e165f3184a2cfe33.zip
opensim-SC_OLD-acbff305f5a9b96dcd0b1534e165f3184a2cfe33.tar.gz
opensim-SC_OLD-acbff305f5a9b96dcd0b1534e165f3184a2cfe33.tar.bz2
opensim-SC_OLD-acbff305f5a9b96dcd0b1534e165f3184a2cfe33.tar.xz
Merge branch 'master' of /home/opensim/var/repo/opensim
Diffstat (limited to 'OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs')
-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();