aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs50
1 files changed, 0 insertions, 50 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs
index 8286e4f..d82760e 100644
--- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs
+++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs
@@ -331,56 +331,6 @@ namespace OpenSim.Region.Framework.Scenes.Tests
331 Assert.That(presence.IsChildAgent, Is.False, "Presence was not made root in old region again."); 331 Assert.That(presence.IsChildAgent, Is.False, "Presence was not made root in old region again.");
332 } 332 }
333 333
334 [Test]
335 public void T030_TestAddAttachments()
336 {
337 TestHelper.InMethod();
338
339 ScenePresence presence = scene.GetScenePresence(agent1);
340
341 presence.AddAttachment(sog1);
342 presence.AddAttachment(sog2);
343 presence.AddAttachment(sog3);
344
345 Assert.That(presence.HasAttachments(), Is.True);
346 Assert.That(presence.ValidateAttachments(), Is.True);
347 }
348
349 [Test]
350 public void T031_RemoveAttachments()
351 {
352 TestHelper.InMethod();
353
354 ScenePresence presence = scene.GetScenePresence(agent1);
355 presence.RemoveAttachment(sog1);
356 presence.RemoveAttachment(sog2);
357 presence.RemoveAttachment(sog3);
358 Assert.That(presence.HasAttachments(), Is.False);
359 }
360
361 // I'm commenting this test because scene setup NEEDS InventoryService to
362 // be non-null
363 //[Test]
364 public void T032_CrossAttachments()
365 {
366 TestHelper.InMethod();
367
368 ScenePresence presence = scene.GetScenePresence(agent1);
369 ScenePresence presence2 = scene2.GetScenePresence(agent1);
370 presence2.AddAttachment(sog1);
371 presence2.AddAttachment(sog2);
372
373 ISharedRegionModule serialiser = new SerialiserModule();
374 SceneSetupHelpers.SetupSceneModules(scene, new IniConfigSource(), serialiser);
375 SceneSetupHelpers.SetupSceneModules(scene2, new IniConfigSource(), serialiser);
376
377 Assert.That(presence.HasAttachments(), Is.False, "Presence has attachments before cross");
378
379 //Assert.That(presence2.CrossAttachmentsIntoNewRegion(region1, true), Is.True, "Cross was not successful");
380 Assert.That(presence2.HasAttachments(), Is.False, "Presence2 objects were not deleted");
381 Assert.That(presence.HasAttachments(), Is.True, "Presence has not received new objects");
382 }
383
384 [TearDown] 334 [TearDown]
385 public void TearDown() 335 public void TearDown()
386 { 336 {