aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
index d341901..297c33c 100644
--- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
@@ -208,6 +208,17 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
208 208
209 string returnValue2 = (string)InvokeOp("JsonGetValue", storeId, "Hello"); 209 string returnValue2 = (string)InvokeOp("JsonGetValue", storeId, "Hello");
210 Assert.That(returnValue2, Is.EqualTo("")); 210 Assert.That(returnValue2, Is.EqualTo(""));
211
212 // Test remove of non-existing value
213 int fakeValueRemove = (int)InvokeOp("JsonRemoveValue", storeId, "Hello");
214
215 // XXX: Is this the best response to removing a value that isn't there?
216 Assert.That(fakeValueRemove, Is.EqualTo(1));
217
218 // Test get from non-existing store
219 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
220 int fakeStoreValueRemove = (int)InvokeOp("JsonRemoveValue", fakeStoreId, "Hello");
221 Assert.That(fakeStoreValueRemove, Is.EqualTo(0));
211 } 222 }
212 223
213 [Test] 224 [Test]