diff options
author | Justin Clark-Casey (justincc) | 2011-08-16 22:13:13 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-08-16 22:13:32 +0100 |
commit | 0bbf7c21d719de19d517417523e36bc25ac6ad70 (patch) | |
tree | 1bad60493cd83f55b665898aeeaf1d95ddd63e27 | |
parent | drop number of attachments in test from 3 to 2 to reduce text complexity (diff) | |
download | opensim-SC-0bbf7c21d719de19d517417523e36bc25ac6ad70.zip opensim-SC-0bbf7c21d719de19d517417523e36bc25ac6ad70.tar.gz opensim-SC-0bbf7c21d719de19d517417523e36bc25ac6ad70.tar.bz2 opensim-SC-0bbf7c21d719de19d517417523e36bc25ac6ad70.tar.xz |
Isolate existing incomplete attachments tests rather than have them rely on each other.
Much easier to debug this way.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs index 2e32377..d182996 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs | |||
@@ -59,11 +59,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests | |||
59 | public AgentCircuitData acd1; | 59 | public AgentCircuitData acd1; |
60 | public SceneObjectGroup sog1, sog2; | 60 | public SceneObjectGroup sog1, sog2; |
61 | 61 | ||
62 | [TestFixtureSetUp] | 62 | [SetUp] |
63 | public void Init() | 63 | public void Init() |
64 | { | 64 | { |
65 | TestHelpers.InMethod(); | ||
66 | |||
67 | scene = SceneHelpers.SetupScene("Neighbour x", UUID.Random(), 1000, 1000); | 65 | scene = SceneHelpers.SetupScene("Neighbour x", UUID.Random(), 1000, 1000); |
68 | 66 | ||
69 | ISharedRegionModule interregionComms = new LocalSimulationConnectorModule(); | 67 | ISharedRegionModule interregionComms = new LocalSimulationConnectorModule(); |
@@ -83,7 +81,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests | |||
83 | } | 81 | } |
84 | 82 | ||
85 | [Test] | 83 | [Test] |
86 | public void T030_TestAddAttachments() | 84 | public void TestAddAttachments() |
87 | { | 85 | { |
88 | TestHelpers.InMethod(); | 86 | TestHelpers.InMethod(); |
89 | 87 | ||
@@ -97,11 +95,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests | |||
97 | } | 95 | } |
98 | 96 | ||
99 | [Test] | 97 | [Test] |
100 | public void T031_RemoveAttachments() | 98 | public void TestRemoveAttachments() |
101 | { | 99 | { |
102 | TestHelpers.InMethod(); | 100 | TestHelpers.InMethod(); |
103 | 101 | ||
104 | ScenePresence presence = scene.GetScenePresence(agent1); | 102 | ScenePresence presence = scene.GetScenePresence(agent1); |
103 | presence.AddAttachment(sog1); | ||
104 | presence.AddAttachment(sog2); | ||
105 | presence.RemoveAttachment(sog1); | 105 | presence.RemoveAttachment(sog1); |
106 | presence.RemoveAttachment(sog2); | 106 | presence.RemoveAttachment(sog2); |
107 | Assert.That(presence.HasAttachments(), Is.False); | 107 | Assert.That(presence.HasAttachments(), Is.False); |