aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs
index 8eb3191..6985766 100644
--- a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs
+++ b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs
@@ -58,6 +58,25 @@ namespace OpenSim.Region.Framework.Scenes.Tests
58 } 58 }
59 59
60 [Test] 60 [Test]
61 public void TestSetTemporary()
62 {
63 TestHelpers.InMethod();
64
65 m_scene.AddSceneObject(m_so1);
66 m_so1.ScriptSetTemporaryStatus(true);
67
68 // Is this really the correct flag?
69 Assert.That(m_so1.RootPart.Flags, Is.EqualTo(PrimFlags.TemporaryOnRez));
70 Assert.That(m_so1.Backup, Is.False);
71
72 // Test setting back to non-temporary
73 m_so1.ScriptSetTemporaryStatus(false);
74
75 Assert.That(m_so1.RootPart.Flags, Is.EqualTo(PrimFlags.None));
76 Assert.That(m_so1.Backup, Is.True);
77 }
78
79 [Test]
61 public void TestSetPhantomSinglePrim() 80 public void TestSetPhantomSinglePrim()
62 { 81 {
63 TestHelpers.InMethod(); 82 TestHelpers.InMethod();