diff options
author | Justin Clark-Casey (justincc) | 2011-06-04 02:44:53 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-06-04 02:44:53 +0100 |
commit | fe471b64245f99a895d661a8952fc3c226ba6bfe (patch) | |
tree | 1b357992d0b320b429706392226d6eb7dc08f993 /OpenSim/Region/Framework | |
parent | Fix give inventory tests to use different users rather than (accidentally) th... (diff) | |
download | opensim-SC_OLD-fe471b64245f99a895d661a8952fc3c226ba6bfe.zip opensim-SC_OLD-fe471b64245f99a895d661a8952fc3c226ba6bfe.tar.gz opensim-SC_OLD-fe471b64245f99a895d661a8952fc3c226ba6bfe.tar.bz2 opensim-SC_OLD-fe471b64245f99a895d661a8952fc3c226ba6bfe.tar.xz |
Extend TestGiveInventoryFolder() to test giving back the freshly received folder
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/UserInventoryTests.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/UserInventoryTests.cs b/OpenSim/Region/Framework/Scenes/Tests/UserInventoryTests.cs index 10c275e..abca792 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/UserInventoryTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/UserInventoryTests.cs | |||
@@ -97,6 +97,14 @@ namespace OpenSim.Region.Framework.Tests | |||
97 | = UserInventoryHelpers.GetInventoryFolder(scene.InventoryService, user2.PrincipalID, "folder1"); | 97 | = UserInventoryHelpers.GetInventoryFolder(scene.InventoryService, user2.PrincipalID, "folder1"); |
98 | 98 | ||
99 | Assert.That(retrievedFolder1, Is.Not.Null); | 99 | Assert.That(retrievedFolder1, Is.Not.Null); |
100 | |||
101 | // Try giving back the freshly received folder | ||
102 | scene.GiveInventoryFolder(user1.PrincipalID, user2.PrincipalID, retrievedFolder1.ID, UUID.Zero); | ||
103 | |||
104 | List<InventoryFolderBase> reretrievedFolders | ||
105 | = UserInventoryHelpers.GetInventoryFolders(scene.InventoryService, user1.PrincipalID, "folder1"); | ||
106 | |||
107 | Assert.That(reretrievedFolders.Count, Is.EqualTo(2)); | ||
100 | } | 108 | } |
101 | } | 109 | } |
102 | } \ No newline at end of file | 110 | } \ No newline at end of file |