diff options
author | Justin Clark-Casey (justincc) | 2013-02-08 00:04:05 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-02-08 00:04:05 +0000 |
commit | bef8961578d060faea8900e3be4fb9a8a4fe783d (patch) | |
tree | 7f6ba582166575b37480e4c999453b99b8162e7b | |
parent | Extend TestJsonTestPath() regression test with checks against fake values and... (diff) | |
download | opensim-SC_OLD-bef8961578d060faea8900e3be4fb9a8a4fe783d.zip opensim-SC_OLD-bef8961578d060faea8900e3be4fb9a8a4fe783d.tar.gz opensim-SC_OLD-bef8961578d060faea8900e3be4fb9a8a4fe783d.tar.bz2 opensim-SC_OLD-bef8961578d060faea8900e3be4fb9a8a4fe783d.tar.xz |
Extend TestJsonSetValue() regressio ntes tto test against a fake store
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs index f2de0af..73bc955 100644 --- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs +++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs | |||
@@ -254,6 +254,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
254 | 254 | ||
255 | string value = (string)InvokeOp("JsonGetValue", storeId, "Fun"); | 255 | string value = (string)InvokeOp("JsonGetValue", storeId, "Fun"); |
256 | Assert.That(value, Is.EqualTo("Times")); | 256 | Assert.That(value, Is.EqualTo("Times")); |
257 | |||
258 | // Test with fake store | ||
259 | UUID fakeStoreId = TestHelpers.ParseTail(0x500); | ||
260 | int fakeStoreValueSet = (int)InvokeOp("JsonSetValue", fakeStoreId, "Hello", "World"); | ||
261 | Assert.That(fakeStoreValueSet, Is.EqualTo(0)); | ||
257 | } | 262 | } |
258 | 263 | ||
259 | /// <summary> | 264 | /// <summary> |