diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs index 8eb3191..1737e3c 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs | |||
@@ -31,10 +31,8 @@ using System.Reflection; | |||
31 | using NUnit.Framework; | 31 | using NUnit.Framework; |
32 | using OpenMetaverse; | 32 | using OpenMetaverse; |
33 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
34 | using OpenSim.Framework.Communications; | ||
35 | using OpenSim.Region.Framework.Scenes; | 34 | using OpenSim.Region.Framework.Scenes; |
36 | using OpenSim.Tests.Common; | 35 | using OpenSim.Tests.Common; |
37 | using OpenSim.Tests.Common.Mock; | ||
38 | 36 | ||
39 | namespace OpenSim.Region.Framework.Scenes.Tests | 37 | namespace OpenSim.Region.Framework.Scenes.Tests |
40 | { | 38 | { |
@@ -58,6 +56,25 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
58 | } | 56 | } |
59 | 57 | ||
60 | [Test] | 58 | [Test] |
59 | public void TestSetTemporary() | ||
60 | { | ||
61 | TestHelpers.InMethod(); | ||
62 | |||
63 | m_scene.AddSceneObject(m_so1); | ||
64 | m_so1.ScriptSetTemporaryStatus(true); | ||
65 | |||
66 | // Is this really the correct flag? | ||
67 | Assert.That(m_so1.RootPart.Flags, Is.EqualTo(PrimFlags.TemporaryOnRez)); | ||
68 | Assert.That(m_so1.Backup, Is.False); | ||
69 | |||
70 | // Test setting back to non-temporary | ||
71 | m_so1.ScriptSetTemporaryStatus(false); | ||
72 | |||
73 | Assert.That(m_so1.RootPart.Flags, Is.EqualTo(PrimFlags.None)); | ||
74 | Assert.That(m_so1.Backup, Is.True); | ||
75 | } | ||
76 | |||
77 | [Test] | ||
61 | public void TestSetPhantomSinglePrim() | 78 | public void TestSetPhantomSinglePrim() |
62 | { | 79 | { |
63 | TestHelpers.InMethod(); | 80 | TestHelpers.InMethod(); |