Add TestJsonDestoreStoreNotExists()
This still returns true even if we ask to destroy a store that does not exist. Need to check that this is more appropriate behaviour.0.7.4-extended
parent
001bbb0b16
commit
c67f791097
|
@ -134,6 +134,20 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
|
||||||
Assert.That(tprv, Is.EqualTo(0));
|
Assert.That(tprv, Is.EqualTo(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestJsonDestroyStoreNotExists()
|
||||||
|
{
|
||||||
|
TestHelpers.InMethod();
|
||||||
|
// TestHelpers.EnableLogging();
|
||||||
|
|
||||||
|
UUID fakeStoreId = TestHelpers.ParseTail(0x500);
|
||||||
|
|
||||||
|
int dsrv = (int)InvokeOp("JsonDestroyStore", fakeStoreId);
|
||||||
|
|
||||||
|
// XXX: Current returns 'true' even though no such store existed. Need to ask if this is best behaviour.
|
||||||
|
Assert.That(dsrv, Is.EqualTo(1));
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestJsonGetValue()
|
public void TestJsonGetValue()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue