diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs index 2a342d5..16e8b63 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs | |||
@@ -62,5 +62,25 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
62 | 62 | ||
63 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.None)); | 63 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.None)); |
64 | } | 64 | } |
65 | |||
66 | [Test] | ||
67 | public void TestSetPhysics() | ||
68 | { | ||
69 | TestHelpers.InMethod(); | ||
70 | |||
71 | // Scene scene = SceneSetupHelpers.SetupScene(); | ||
72 | SceneObjectGroup so = SceneHelpers.CreateSceneObject(1, UUID.Zero); | ||
73 | SceneObjectPart rootPart = so.RootPart; | ||
74 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.None)); | ||
75 | |||
76 | so.ScriptSetPhysicsStatus(true); | ||
77 | |||
78 | // Console.WriteLine("so.RootPart.Flags [{0}]", so.RootPart.Flags); | ||
79 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.Physics)); | ||
80 | |||
81 | so.ScriptSetPhysicsStatus(false); | ||
82 | |||
83 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.None)); | ||
84 | } | ||
65 | } | 85 | } |
66 | } \ No newline at end of file | 86 | } \ No newline at end of file |