29 using System.Collections.Generic;
30 using System.Reflection;
31 using NUnit.Framework;
33 using OpenSim.Framework;
34 using OpenSim.Region.Framework.Interfaces;
35 using OpenSim.Region.Framework.Scenes;
36 using OpenSim.Tests.Common;
38 namespace OpenSim.
Region.Framework.Scenes.Tests
46 TestHelpers.InMethod();
49 UUID userId = TestHelpers.ParseTail(0x1);
51 string itemName =
"Test Script Item";
55 scene.AddNewSceneObject(so,
true);
58 itemTemplate.Name = itemName;
59 itemTemplate.Folder = so.UUID;
60 itemTemplate.InvType = (int)InventoryType.LSL;
64 Assert.That(partWhereScriptAdded, Is.Not.Null);
67 Assert.That(primInventory.GetInventoryList().Count, Is.EqualTo(1));
68 Assert.That(primInventory.ContainsScripts(), Is.True);
70 IList<TaskInventoryItem> primItems = primInventory.GetInventoryItems(itemName);
71 Assert.That(primItems.Count, Is.EqualTo(1));
A scene object group is conceptually an object in the scene. The object is constituted of SceneObject...
SceneObjectPart RezNewScript(UUID agentID, InventoryItemBase itemBase)
Rez a new script from nothing.
Inventory Item - contains all the properties associated with an individual inventory piece...
Helpers for setting up scenes.
Interface to an entity's (SceneObjectPart's) inventory