From 7b1e82a8aa2e2589bcfd4c273e1a23ef228eb980 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 1 Oct 2008 19:29:06 +0000 Subject: [PATCH] remove tests for inventory --- OpenSim/Data/Tests/BasicRegionTest.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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() {