diff options
author | Diva Canto | 2017-05-01 16:49:42 -0700 |
---|---|---|
committer | Diva Canto | 2017-05-01 16:49:42 -0700 |
commit | 9c82ff76730c9eff80cace1ddece0148d8d0a7ee (patch) | |
tree | 0dda87eac67e84218d16a66f137459e1b2d1bf84 /OpenSim/Tests/Permissions/IndirectTransferTests.cs | |
parent | Added some indirect transfer tests -- Take Copy by another avatar (diff) | |
download | opensim-SC_OLD-9c82ff76730c9eff80cace1ddece0148d8d0a7ee.zip opensim-SC_OLD-9c82ff76730c9eff80cace1ddece0148d8d0a7ee.tar.gz opensim-SC_OLD-9c82ff76730c9eff80cace1ddece0148d8d0a7ee.tar.bz2 opensim-SC_OLD-9c82ff76730c9eff80cace1ddece0148d8d0a7ee.tar.xz |
Shuffle some code around
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tests/Permissions/IndirectTransferTests.cs | 16 |
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> |