diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Attachments')
-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); |