aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
index 4b6ddd6..204bab1 100644
--- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
@@ -82,5 +82,22 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
82 82
83 Assert.That(storeId, Is.Not.EqualTo(UUID.Zero)); 83 Assert.That(storeId, Is.Not.EqualTo(UUID.Zero));
84 } 84 }
85
86 [Test]
87 public void TestJsonGetValue()
88 {
89 TestHelpers.InMethod();
90// log4net.Config.XmlConfigurator.Configure();
91
92 UUID storeId
93 = (UUID)m_smcm.InvokeOperation(
94 UUID.Zero, UUID.Zero, "JsonCreateStore", new object[] { "{ 'Hello' : 'World' }" });
95
96 string value
97 = (string)m_smcm.InvokeOperation(
98 UUID.Zero, UUID.Zero, "JsonGetValue", new object[] { storeId, "Hello" });
99
100 Assert.That(value, Is.EqualTo("World"));
101 }
85 } 102 }
86} \ No newline at end of file 103} \ No newline at end of file