diff options
author | Justin Clark-Casey (justincc) | 2012-04-21 00:54:48 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-04-21 00:54:48 +0100 |
commit | 06552f217ebd9301fd487c788a13fd75d61a46de (patch) | |
tree | 7dba9e0c918dd53c7ce76eae6afa5602473601b1 /OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs | |
parent | If a physical prim is manually moved (e.g. by a user) then set the geometry p... (diff) | |
download | opensim-SC_OLD-06552f217ebd9301fd487c788a13fd75d61a46de.zip opensim-SC_OLD-06552f217ebd9301fd487c788a13fd75d61a46de.tar.gz opensim-SC_OLD-06552f217ebd9301fd487c788a13fd75d61a46de.tar.bz2 opensim-SC_OLD-06552f217ebd9301fd487c788a13fd75d61a46de.tar.xz |
Add TestSetPhysics() to SOP status tests
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs')
-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 |