diff options
author | Justin Clark-Casey (justincc) | 2011-08-17 00:42:58 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-08-17 00:42:58 +0100 |
commit | bd5d35ee323df9b15d5303c2dcad7e29a4f3e0eb (patch) | |
tree | 32b6e3a75050c34bd9729308335683e944df2f90 /OpenSim/Region | |
parent | Add new regression TestRezAttachmentsOnAvatarEntrance() to do simple attachme... (diff) | |
download | opensim-SC_OLD-bd5d35ee323df9b15d5303c2dcad7e29a4f3e0eb.zip opensim-SC_OLD-bd5d35ee323df9b15d5303c2dcad7e29a4f3e0eb.tar.gz opensim-SC_OLD-bd5d35ee323df9b15d5303c2dcad7e29a4f3e0eb.tar.bz2 opensim-SC_OLD-bd5d35ee323df9b15d5303c2dcad7e29a4f3e0eb.tar.xz |
extend test to check that there is one attachment and that it has the right name
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs index 8c79ab4..5bac4c6 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs | |||
@@ -122,11 +122,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests | |||
122 | UUID userId = TestHelpers.ParseTail(0x1); | 122 | UUID userId = TestHelpers.ParseTail(0x1); |
123 | UUID attItemId = TestHelpers.ParseTail(0x2); | 123 | UUID attItemId = TestHelpers.ParseTail(0x2); |
124 | UUID attAssetId = TestHelpers.ParseTail(0x3); | 124 | UUID attAssetId = TestHelpers.ParseTail(0x3); |
125 | string attName = "att"; | ||
125 | 126 | ||
126 | UserAccountHelpers.CreateUserWithInventory(scene, userId); | 127 | UserAccountHelpers.CreateUserWithInventory(scene, userId); |
127 | InventoryItemBase attItem | 128 | InventoryItemBase attItem |
128 | = UserInventoryHelpers.CreateInventoryItem( | 129 | = UserInventoryHelpers.CreateInventoryItem( |
129 | scene, "att", attItemId, attAssetId, userId, InventoryType.Object); | 130 | scene, attName, attItemId, attAssetId, userId, InventoryType.Object); |
130 | 131 | ||
131 | AgentCircuitData acd = SceneHelpers.GenerateAgentData(userId); | 132 | AgentCircuitData acd = SceneHelpers.GenerateAgentData(userId); |
132 | acd.Appearance = new AvatarAppearance(); | 133 | acd.Appearance = new AvatarAppearance(); |
@@ -134,6 +135,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests | |||
134 | ScenePresence presence = SceneHelpers.AddScenePresence(scene, acd); | 135 | ScenePresence presence = SceneHelpers.AddScenePresence(scene, acd); |
135 | 136 | ||
136 | Assert.That(presence.HasAttachments(), Is.True); | 137 | Assert.That(presence.HasAttachments(), Is.True); |
138 | List<SceneObjectGroup> attachments = presence.Attachments; | ||
139 | |||
140 | Assert.That(attachments.Count, Is.EqualTo(1)); | ||
141 | Assert.That(attachments[0].Name, Is.EqualTo(attName)); | ||
137 | } | 142 | } |
138 | 143 | ||
139 | // I'm commenting this test because scene setup NEEDS InventoryService to | 144 | // I'm commenting this test because scene setup NEEDS InventoryService to |