Add JsonDestroyStore() basic regression test

0.7.4-extended
Justin Clark-Casey (justincc) 2013-01-30 05:56:30 +00:00
parent 16641e5bd0
commit f030f1dbfb
1 changed files with 15 additions and 0 deletions

View File

@ -98,6 +98,21 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
Assert.That(storeId, Is.Not.EqualTo(UUID.Zero)); Assert.That(storeId, Is.Not.EqualTo(UUID.Zero));
} }
[Test]
public void TestJsonDestroyStore()
{
TestHelpers.InMethod();
// TestHelpers.EnableLogging();
UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : 'World' }");
int dsrv = (int)InvokeOp("JsonDestroyStore", storeId);
Assert.That(dsrv, Is.EqualTo(1));
int tprv = (int)InvokeOp("JsonTestPath", storeId, "Hello");
Assert.That(tprv, Is.EqualTo(0));
}
[Test] [Test]
public void TestJsonGetValue() public void TestJsonGetValue()
{ {