aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/JsonStore
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-02-08 00:01:06 +0000
committerJustin Clark-Casey (justincc)2013-02-08 00:01:06 +0000
commitbe982666fb403aa5ee254903cdae0231131c6d70 (patch)
tree8f41088c9beb4a65049fbc413307f1e00d323ac3 /OpenSim/Region/OptionalModules/Scripting/JsonStore
parentAdd tests for removing fake values/from fake store in TestJsonRemoveValue() (diff)
downloadopensim-SC_OLD-be982666fb403aa5ee254903cdae0231131c6d70.zip
opensim-SC_OLD-be982666fb403aa5ee254903cdae0231131c6d70.tar.gz
opensim-SC_OLD-be982666fb403aa5ee254903cdae0231131c6d70.tar.bz2
opensim-SC_OLD-be982666fb403aa5ee254903cdae0231131c6d70.tar.xz
Extend TestJsonTestPath() regression test with checks against fake values and fake stores
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/JsonStore')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
index 297c33c..f2de0af 100644
--- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
@@ -231,6 +231,14 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
231 231
232 int result = (int)InvokeOp("JsonTestPath", storeId, "Hello"); 232 int result = (int)InvokeOp("JsonTestPath", storeId, "Hello");
233 Assert.That(result, Is.EqualTo(1)); 233 Assert.That(result, Is.EqualTo(1));
234
235 int result2 = (int)InvokeOp("JsonTestPath", storeId, "foo");
236 Assert.That(result2, Is.EqualTo(0));
237
238 // Test with fake store
239 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
240 int fakeStoreValueRemove = (int)InvokeOp("JsonTestPath", fakeStoreId, "Hello");
241 Assert.That(fakeStoreValueRemove, Is.EqualTo(0));
234 } 242 }
235 243
236 [Test] 244 [Test]