diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs index 80d4fd4852..1978fc74b0 100644 --- a/OpenSim/Data/Tests/BasicRegionTest.cs +++ b/OpenSim/Data/Tests/BasicRegionTest.cs @@ -156,6 +156,14 @@ namespace OpenSim.Data.Tests Assert.That(text, Is.EqualTo(sog.RootPart.Text)); } + [Test] + public void T020_PrimInventoryEmpty() + { + SceneObjectGroup sog = FindSOG("object1", region1); + TaskInventoryItem t = sog.GetInventoryItem(sog.RootPart.LocalId, item1); + Assert.That(t, Is.Null); + } + [Test] public void T021_PrimInventoryStore() { @@ -186,6 +194,17 @@ namespace OpenSim.Data.Tests Assert.That(t.Name, Is.EqualTo(itemname1)); } + [Test] + public void T022_PrimInvetoryRemove() + { + List list = new List(); + db.StorePrimInventory(prim1, list); + + SceneObjectGroup sog = FindSOG("object1", region1); + TaskInventoryItem t = sog.GetInventoryItem(sog.RootPart.LocalId, item1); + Assert.That(t, Is.Null); + } + [Test] public void T051_RemoveObjectWrongRegion() {