Add JsonDestroyStore() basic regression test
parent
16641e5bd0
commit
f030f1dbfb
|
@ -98,6 +98,21 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
|
|||
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]
|
||||
public void TestJsonGetValue()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue