Extend TestJsonSetValue() regressio ntes tto test against a fake store

0.7.4-extended
Justin Clark-Casey (justincc) 2013-02-08 00:04:05 +00:00
parent 37e4186ad8
commit f52cee9732
1 changed files with 5 additions and 0 deletions

View File

@ -254,6 +254,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
string value = (string)InvokeOp("JsonGetValue", storeId, "Fun"); string value = (string)InvokeOp("JsonGetValue", storeId, "Fun");
Assert.That(value, Is.EqualTo("Times")); Assert.That(value, Is.EqualTo("Times"));
// Test with fake store
UUID fakeStoreId = TestHelpers.ParseTail(0x500);
int fakeStoreValueSet = (int)InvokeOp("JsonSetValue", fakeStoreId, "Hello", "World");
Assert.That(fakeStoreValueSet, Is.EqualTo(0));
} }
/// <summary> /// <summary>