aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-02-12 23:00:24 +0000
committerJustin Clark-Casey (justincc)2013-02-12 23:00:24 +0000
commit992ef9e971112af34590e971b0ccf5d48db513b2 (patch)
tree4947d02a67c0788bb831f3c06f50e2795caa8993 /OpenSim/Region/OptionalModules/Scripting
parentReplaced Ionic.Zip.dll with a new one that fixes a bug in it. DotNetZip (from... (diff)
downloadopensim-SC_OLD-992ef9e971112af34590e971b0ccf5d48db513b2.zip
opensim-SC_OLD-992ef9e971112af34590e971b0ccf5d48db513b2.tar.gz
opensim-SC_OLD-992ef9e971112af34590e971b0ccf5d48db513b2.tar.bz2
opensim-SC_OLD-992ef9e971112af34590e971b0ccf5d48db513b2.tar.xz
Extend TestJsonCreateStore() with a one key input and an input with raw number values
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs22
1 files changed, 20 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
index 012a528..eb4bc22 100644
--- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
@@ -115,8 +115,26 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
115 TestHelpers.InMethod(); 115 TestHelpers.InMethod();
116// TestHelpers.EnableLogging(); 116// TestHelpers.EnableLogging();
117 117
118 UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); 118 // Test blank store
119 Assert.That(storeId, Is.Not.EqualTo(UUID.Zero)); 119 {
120 UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}");
121 Assert.That(storeId, Is.Not.EqualTo(UUID.Zero));
122 }
123
124 // Test single element store
125 {
126 UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : 'World' }");
127 Assert.That(storeId, Is.Not.EqualTo(UUID.Zero));
128 }
129
130 // Test with an integer value
131 {
132 UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : 42.15 }");
133 Assert.That(storeId, Is.Not.EqualTo(UUID.Zero));
134
135 string value = (string)InvokeOp("JsonGetValue", storeId, "Hello");
136 Assert.That(value, Is.EqualTo("42.15"));
137 }
120 } 138 }
121 139
122 [Test] 140 [Test]