diff options
author | Justin Clark-Casey (justincc) | 2011-02-19 00:14:13 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-02-19 00:14:13 +0000 |
commit | 9e47018cfb42cc67a1d414e73396861b3a6b99ea (patch) | |
tree | 01a92c52ad4750a38866e808a790d34668e70de2 | |
parent | Remove unused SceneSetupHelpers.DeleteObjectAsync(). (diff) | |
download | opensim-SC_OLD-9e47018cfb42cc67a1d414e73396861b3a6b99ea.zip opensim-SC_OLD-9e47018cfb42cc67a1d414e73396861b3a6b99ea.tar.gz opensim-SC_OLD-9e47018cfb42cc67a1d414e73396861b3a6b99ea.tar.bz2 opensim-SC_OLD-9e47018cfb42cc67a1d414e73396861b3a6b99ea.tar.xz |
Remove test T020_TestMakeRootAgent() which hasn't been active for ages anyway
This test was non-viable. Keeping inactive T021_TestCrossToNewRegion() around for now since it's still useful for reference purposes in constructing a future working test.
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs index 5e1ff79..fd2d6fa 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs | |||
@@ -222,25 +222,6 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
222 | // Assert.That(childPresence.IsChildAgent, Is.True); | 222 | // Assert.That(childPresence.IsChildAgent, Is.True); |
223 | } | 223 | } |
224 | 224 | ||
225 | // I'm commenting this test, because this is not supposed to happen here | ||
226 | //[Test] | ||
227 | public void T020_TestMakeRootAgent() | ||
228 | { | ||
229 | TestHelper.InMethod(); | ||
230 | |||
231 | ScenePresence presence = scene.GetScenePresence(agent1); | ||
232 | Assert.That(presence.IsChildAgent, Is.False, "Starts out as a root agent"); | ||
233 | |||
234 | presence.MakeChildAgent(); | ||
235 | Assert.That(presence.IsChildAgent, Is.True, "Did not change to child agent after MakeChildAgent"); | ||
236 | |||
237 | // Accepts 0 but rejects Constants.RegionSize | ||
238 | Vector3 pos = new Vector3(0,unchecked(Constants.RegionSize-1),0); | ||
239 | presence.MakeRootAgent(pos,true); | ||
240 | Assert.That(presence.IsChildAgent, Is.False, "Did not go back to root agent"); | ||
241 | Assert.That(presence.AbsolutePosition, Is.EqualTo(pos), "Position is not the same one entered"); | ||
242 | } | ||
243 | |||
244 | // I'm commenting this test because it does not represent | 225 | // I'm commenting this test because it does not represent |
245 | // crossings. The Thread.Sleep's in here are not meaningful mocks, | 226 | // crossings. The Thread.Sleep's in here are not meaningful mocks, |
246 | // and they sometimes fail in panda. | 227 | // and they sometimes fail in panda. |