diff options
author | Mike Mazur | 2009-02-03 05:20:26 +0000 |
---|---|---|
committer | Mike Mazur | 2009-02-03 05:20:26 +0000 |
commit | 9377c6f2b28c75a093fa554d64e0d63e6bdf2fa5 (patch) | |
tree | 8dbd671990b4d6c5a40d369b0d026df8851b3e1f /OpenSim/Data/Tests | |
parent | - move IAssetDataPlugin from OpenSim/Framework/IAssetProvider.cs to (diff) | |
download | opensim-SC_OLD-9377c6f2b28c75a093fa554d64e0d63e6bdf2fa5.zip opensim-SC_OLD-9377c6f2b28c75a093fa554d64e0d63e6bdf2fa5.tar.gz opensim-SC_OLD-9377c6f2b28c75a093fa554d64e0d63e6bdf2fa5.tar.bz2 opensim-SC_OLD-9377c6f2b28c75a093fa554d64e0d63e6bdf2fa5.tar.xz |
- move OpenSim/Framework/IInventoryData.cs to
OpenSim/Data/IInventoryData.cs
- trim trailing whitespace
Diffstat (limited to 'OpenSim/Data/Tests')
-rw-r--r-- | OpenSim/Data/Tests/BasicInventoryTest.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Data/Tests/BasicInventoryTest.cs b/OpenSim/Data/Tests/BasicInventoryTest.cs index ea8e4e8..2e6226f 100644 --- a/OpenSim/Data/Tests/BasicInventoryTest.cs +++ b/OpenSim/Data/Tests/BasicInventoryTest.cs | |||
@@ -94,9 +94,9 @@ namespace OpenSim.Data.Tests | |||
94 | iname1 = "Shirt"; | 94 | iname1 = "Shirt"; |
95 | iname2 = "Text Board"; | 95 | iname2 = "Text Board"; |
96 | iname3 = "No Pants Barrel"; | 96 | iname3 = "No Pants Barrel"; |
97 | 97 | ||
98 | } | 98 | } |
99 | 99 | ||
100 | [Test] | 100 | [Test] |
101 | public void T001_LoadEmpty() | 101 | public void T001_LoadEmpty() |
102 | { | 102 | { |
@@ -163,7 +163,7 @@ namespace OpenSim.Data.Tests | |||
163 | { | 163 | { |
164 | InventoryFolderBase f2 = NewFolder(folder3, folder1, owner1, name3); | 164 | InventoryFolderBase f2 = NewFolder(folder3, folder1, owner1, name3); |
165 | db.addInventoryFolder(f2); | 165 | db.addInventoryFolder(f2); |
166 | 166 | ||
167 | Assert.That(db.getInventoryFolders(zero).Count, Is.EqualTo(1)); | 167 | Assert.That(db.getInventoryFolders(zero).Count, Is.EqualTo(1)); |
168 | Assert.That(db.getInventoryFolders(folder1).Count, Is.EqualTo(2)); | 168 | Assert.That(db.getInventoryFolders(folder1).Count, Is.EqualTo(2)); |
169 | Assert.That(db.getInventoryFolders(folder2).Count, Is.EqualTo(0)); | 169 | Assert.That(db.getInventoryFolders(folder2).Count, Is.EqualTo(0)); |
@@ -171,7 +171,7 @@ namespace OpenSim.Data.Tests | |||
171 | Assert.That(db.getInventoryFolders(UUID.Random()).Count, Is.EqualTo(0)); | 171 | Assert.That(db.getInventoryFolders(UUID.Random()).Count, Is.EqualTo(0)); |
172 | 172 | ||
173 | } | 173 | } |
174 | 174 | ||
175 | [Test] | 175 | [Test] |
176 | public void T013_FolderHierarchy() | 176 | public void T013_FolderHierarchy() |
177 | { | 177 | { |
@@ -182,14 +182,14 @@ namespace OpenSim.Data.Tests | |||
182 | Assert.That(db.getFolderHierarchy(UUID.Random()).Count, Is.EqualTo(0)); | 182 | Assert.That(db.getFolderHierarchy(UUID.Random()).Count, Is.EqualTo(0)); |
183 | } | 183 | } |
184 | 184 | ||
185 | 185 | ||
186 | [Test] | 186 | [Test] |
187 | public void T014_MoveFolder() | 187 | public void T014_MoveFolder() |
188 | { | 188 | { |
189 | InventoryFolderBase f2 = db.getInventoryFolder(folder2); | 189 | InventoryFolderBase f2 = db.getInventoryFolder(folder2); |
190 | f2.ParentID = folder3; | 190 | f2.ParentID = folder3; |
191 | db.moveInventoryFolder(f2); | 191 | db.moveInventoryFolder(f2); |
192 | 192 | ||
193 | Assert.That(db.getInventoryFolders(zero).Count, Is.EqualTo(1)); | 193 | Assert.That(db.getInventoryFolders(zero).Count, Is.EqualTo(1)); |
194 | Assert.That(db.getInventoryFolders(folder1).Count, Is.EqualTo(1)); | 194 | Assert.That(db.getInventoryFolders(folder1).Count, Is.EqualTo(1)); |
195 | Assert.That(db.getInventoryFolders(folder2).Count, Is.EqualTo(0)); | 195 | Assert.That(db.getInventoryFolders(folder2).Count, Is.EqualTo(0)); |
@@ -228,7 +228,7 @@ namespace OpenSim.Data.Tests | |||
228 | db.addInventoryItem(NewItem(item3, folder3, owner1, iname3, asset3)); | 228 | db.addInventoryItem(NewItem(item3, folder3, owner1, iname3, asset3)); |
229 | Assert.That(db.getInventoryInFolder(folder3).Count, Is.EqualTo(3)); | 229 | Assert.That(db.getInventoryInFolder(folder3).Count, Is.EqualTo(3)); |
230 | } | 230 | } |
231 | 231 | ||
232 | [Test] | 232 | [Test] |
233 | public void T102_CompareItems() | 233 | public void T102_CompareItems() |
234 | { | 234 | { |
@@ -245,7 +245,7 @@ namespace OpenSim.Data.Tests | |||
245 | Assert.That(i2.AssetID, Is.EqualTo(asset2)); | 245 | Assert.That(i2.AssetID, Is.EqualTo(asset2)); |
246 | Assert.That(i3.AssetID, Is.EqualTo(asset3)); | 246 | Assert.That(i3.AssetID, Is.EqualTo(asset3)); |
247 | } | 247 | } |
248 | 248 | ||
249 | [Test] | 249 | [Test] |
250 | public void T103UpdateItem() | 250 | public void T103UpdateItem() |
251 | { | 251 | { |
@@ -257,7 +257,7 @@ namespace OpenSim.Data.Tests | |||
257 | i1.Description = niname1; | 257 | i1.Description = niname1; |
258 | i1.Owner = owner2; | 258 | i1.Owner = owner2; |
259 | db.updateInventoryItem(i1); | 259 | db.updateInventoryItem(i1); |
260 | 260 | ||
261 | i1 = db.getInventoryItem(item1); | 261 | i1 = db.getInventoryItem(item1); |
262 | Assert.That(i1.Name, Is.EqualTo(niname1)); | 262 | Assert.That(i1.Name, Is.EqualTo(niname1)); |
263 | Assert.That(i1.Description, Is.EqualTo(niname1)); | 263 | Assert.That(i1.Description, Is.EqualTo(niname1)); |
@@ -287,4 +287,4 @@ namespace OpenSim.Data.Tests | |||
287 | return f; | 287 | return f; |
288 | } | 288 | } |
289 | } | 289 | } |
290 | } \ No newline at end of file | 290 | } |