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

user_profiles
Justin Clark-Casey (justincc) 2013-02-08 00:04:05 +00:00
parent be982666fb
commit bef8961578
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");
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>