mirror of
https://github.com/opensim/opensim.git
synced 2026-07-14 19:55:35 +08:00
Add JsonDestroyStore() basic regression test
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user