aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests/InventoryTests.cs
diff options
context:
space:
mode:
authorAlexRa2010-05-23 11:31:19 +0300
committerAlexRa2010-05-23 11:48:22 +0300
commit89b7c64b6f491c4f703bb8fe28987ee5e3d5c50f (patch)
tree11b003fc0d6ede85acbe50f47bf95b36c6076614 /OpenSim/Data/Tests/InventoryTests.cs
parentFurther corrections to MS SQL stores (now passes all tests) (diff)
downloadopensim-SC-89b7c64b6f491c4f703bb8fe28987ee5e3d5c50f.zip
opensim-SC-89b7c64b6f491c4f703bb8fe28987ee5e3d5c50f.tar.gz
opensim-SC-89b7c64b6f491c4f703bb8fe28987ee5e3d5c50f.tar.bz2
opensim-SC-89b7c64b6f491c4f703bb8fe28987ee5e3d5c50f.tar.xz
Various minor changes in the data tests
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/Tests/InventoryTests.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Data/Tests/InventoryTests.cs b/OpenSim/Data/Tests/InventoryTests.cs
index 93e1eba..c22e26c 100644
--- a/OpenSim/Data/Tests/InventoryTests.cs
+++ b/OpenSim/Data/Tests/InventoryTests.cs
@@ -123,7 +123,7 @@ namespace OpenSim.Data.Tests
123 private void ClearDB() 123 private void ClearDB()
124 { 124 {
125 DropTables("inventoryitems", "inventoryfolders"); 125 DropTables("inventoryitems", "inventoryfolders");
126 ExecuteSql("delete from migrations where name='Inventory'"); 126 ResetMigrations("InventoryStore");
127 } 127 }
128 128
129 [Test] 129 [Test]
@@ -194,8 +194,10 @@ namespace OpenSim.Data.Tests
194 [Test] 194 [Test]
195 public void T013_FolderHierarchy() 195 public void T013_FolderHierarchy()
196 { 196 {
197 Assert.That(db.getFolderHierarchy(zero).Count, Is.EqualTo(0), "Assert.That(db.getFolderHierarchy(zero).Count, Is.EqualTo(0))"); 197 int n = db.getFolderHierarchy(zero).Count; // (for dbg - easier to see what's returned)
198 Assert.That(db.getFolderHierarchy(folder1).Count, Is.EqualTo(2), "Assert.That(db.getFolderHierarchy(folder1).Count, Is.EqualTo(2))"); 198 Assert.That(n, Is.EqualTo(0), "Assert.That(db.getFolderHierarchy(zero).Count, Is.EqualTo(0))");
199 n = db.getFolderHierarchy(folder1).Count;
200 Assert.That(n, Is.EqualTo(2), "Assert.That(db.getFolderHierarchy(folder1).Count, Is.EqualTo(2))");
199 Assert.That(db.getFolderHierarchy(folder2).Count, Is.EqualTo(0), "Assert.That(db.getFolderHierarchy(folder2).Count, Is.EqualTo(0))"); 201 Assert.That(db.getFolderHierarchy(folder2).Count, Is.EqualTo(0), "Assert.That(db.getFolderHierarchy(folder2).Count, Is.EqualTo(0))");
200 Assert.That(db.getFolderHierarchy(folder3).Count, Is.EqualTo(0), "Assert.That(db.getFolderHierarchy(folder3).Count, Is.EqualTo(0))"); 202 Assert.That(db.getFolderHierarchy(folder3).Count, Is.EqualTo(0), "Assert.That(db.getFolderHierarchy(folder3).Count, Is.EqualTo(0))");
201 Assert.That(db.getFolderHierarchy(UUID.Random()).Count, Is.EqualTo(0), "Assert.That(db.getFolderHierarchy(UUID.Random()).Count, Is.EqualTo(0))"); 203 Assert.That(db.getFolderHierarchy(UUID.Random()).Count, Is.EqualTo(0), "Assert.That(db.getFolderHierarchy(UUID.Random()).Count, Is.EqualTo(0))");