Extend TestJsonTestPath() regression test with checks against fake values and fake stores

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

View File

@ -231,6 +231,14 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
int result = (int)InvokeOp("JsonTestPath", storeId, "Hello"); int result = (int)InvokeOp("JsonTestPath", storeId, "Hello");
Assert.That(result, Is.EqualTo(1)); Assert.That(result, Is.EqualTo(1));
int result2 = (int)InvokeOp("JsonTestPath", storeId, "foo");
Assert.That(result2, Is.EqualTo(0));
// Test with fake store
UUID fakeStoreId = TestHelpers.ParseTail(0x500);
int fakeStoreValueRemove = (int)InvokeOp("JsonTestPath", fakeStoreId, "Hello");
Assert.That(fakeStoreValueRemove, Is.EqualTo(0));
} }
[Test] [Test]