Add JsonDestroyStore() basic regression test
parent
5a22efe69c
commit
d42c7afe3f
|
@ -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