aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs7
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