aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Permissions/IndirectTransferTests.cs
diff options
context:
space:
mode:
authorDiva Canto2017-05-01 16:49:42 -0700
committerDiva Canto2017-05-01 16:49:42 -0700
commit9c82ff76730c9eff80cace1ddece0148d8d0a7ee (patch)
tree0dda87eac67e84218d16a66f137459e1b2d1bf84 /OpenSim/Tests/Permissions/IndirectTransferTests.cs
parentAdded some indirect transfer tests -- Take Copy by another avatar (diff)
downloadopensim-SC-9c82ff76730c9eff80cace1ddece0148d8d0a7ee.zip
opensim-SC-9c82ff76730c9eff80cace1ddece0148d8d0a7ee.tar.gz
opensim-SC-9c82ff76730c9eff80cace1ddece0148d8d0a7ee.tar.bz2
opensim-SC-9c82ff76730c9eff80cace1ddece0148d8d0a7ee.tar.xz
Shuffle some code around
Diffstat (limited to '')
-rw-r--r--OpenSim/Tests/Permissions/IndirectTransferTests.cs16
1 files changed, 1 insertions, 15 deletions
diff --git a/OpenSim/Tests/Permissions/IndirectTransferTests.cs b/OpenSim/Tests/Permissions/IndirectTransferTests.cs
index 6a6ba2f..7d8027f 100644
--- a/OpenSim/Tests/Permissions/IndirectTransferTests.cs
+++ b/OpenSim/Tests/Permissions/IndirectTransferTests.cs
@@ -46,21 +46,7 @@ namespace OpenSim.Tests.Permissions
46 [SetUp] 46 [SetUp]
47 public void SetUp() 47 public void SetUp()
48 { 48 {
49 // Delete everything in A2 and A3's Objects folders from previous tests 49 Common.TheInstance.DeleteObjectsFolders();
50 for (int i = 1; i < 3; i++)
51 {
52 InventoryFolderBase objsFolder = UserInventoryHelpers.GetInventoryFolder(Common.TheScene.InventoryService, Common.TheAvatars[i].UUID, "Objects");
53 Assert.That(objsFolder, Is.Not.Null);
54
55 List<InventoryItemBase> items = Common.TheScene.InventoryService.GetFolderItems(Common.TheAvatars[i].UUID, objsFolder.ID);
56 List<UUID> ids = new List<UUID>();
57 foreach (InventoryItemBase it in items)
58 ids.Add(it.ID);
59
60 Common.TheScene.InventoryService.DeleteItems(Common.TheAvatars[i].UUID, ids);
61 items = Common.TheScene.InventoryService.GetFolderItems(Common.TheAvatars[i].UUID, objsFolder.ID);
62 Assert.That(items.Count, Is.EqualTo(0), "A" + (i+1));
63 }
64 } 50 }
65 51
66 /// <summary> 52 /// <summary>