Add JsonTestPath() regression test

This commit is contained in:
Justin Clark-Casey (justincc)
2013-01-25 02:12:15 +00:00
parent f32361d595
commit 844e60da0f

View File

@@ -100,6 +100,23 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
Assert.That(value, Is.EqualTo("World"));
}
[Test]
public void TestJsonTestPath()
{
TestHelpers.InMethod();
// log4net.Config.XmlConfigurator.Configure();
UUID storeId
= (UUID)m_smcm.InvokeOperation(
UUID.Zero, UUID.Zero, "JsonCreateStore", new object[] { "{ 'Hello' : 'World' }" });
int result
= (int)m_smcm.InvokeOperation(
UUID.Zero, UUID.Zero, "JsonTestPath", new object[] { storeId, "Hello" });
Assert.That(result, Is.EqualTo(1));
}
[Test]
public void TestJsonSetValue()
{