29 using System.Collections.Generic;
30 using System.Reflection;
34 using NUnit.Framework;
36 using OpenSim.Framework;
37 using OpenSim.Region.CoreModules.Scripting.ScriptModuleComms;
38 using OpenSim.Region.Framework.Scenes;
39 using OpenSim.Region.ScriptEngine.Shared;
40 using OpenSim.Region.ScriptEngine.Shared.Api;
41 using OpenSim.Services.Interfaces;
42 using OpenSim.Tests.Common;
52 private Scene m_scene;
61 Util.FireAndForgetMethod = FireAndForgetMethod.RegressionTest;
70 Util.FireAndForgetMethod = Util.DefaultFireAndForgetMethod;
78 IConfigSource configSource =
new IniConfigSource();
79 IConfig jsonStoreConfig = configSource.AddConfig(
"JsonStore");
80 jsonStoreConfig.Set(
"Enabled",
"true");
88 SceneHelpers.SetupSceneModules(m_scene, configSource, m_engine, m_smcm, jsm, m_jssm);
92 m_smcm.RegisterScriptInvocation(
this,
"DummyTestMethod");
94 catch (ArgumentException)
96 Assert.Ignore(
"Ignoring test since running on .NET 3.5 or earlier.");
102 private object InvokeOp(
string name, params
object[] args)
104 return InvokeOpOnHost(name, UUID.Zero, args);
107 private object InvokeOpOnHost(
string name, UUID hostId, params
object[] args)
109 return m_smcm.InvokeOperation(hostId, UUID.Zero, name, args);
115 TestHelpers.InMethod();
120 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
121 Assert.That(storeId, Is.Not.EqualTo(UUID.Zero));
126 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'Hello' : 'World' }");
127 Assert.That(storeId, Is.Not.EqualTo(UUID.Zero));
132 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'Hello' : 42.15 }");
133 Assert.That(storeId, Is.Not.EqualTo(UUID.Zero));
135 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Hello");
136 Assert.That(value, Is.EqualTo(
"42.15"));
141 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"[ 'one', 'two', 'three' ]");
142 Assert.That(storeId, Is.Not.EqualTo(UUID.Zero));
144 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"[1]");
145 Assert.That(value, Is.EqualTo(
"two"));
152 TestHelpers.InMethod();
155 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'Hello' : 'World' }");
156 int dsrv = (int)InvokeOp(
"JsonDestroyStore", storeId);
158 Assert.That(dsrv, Is.EqualTo(1));
160 int tprv = (int)InvokeOp(
"JsonGetNodeType", storeId,
"Hello");
161 Assert.That(tprv, Is.EqualTo(JsonStoreScriptModule.JSON_NODETYPE_UNDEF));
167 TestHelpers.InMethod();
170 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
172 int dsrv = (int)InvokeOp(
"JsonDestroyStore", fakeStoreId);
174 Assert.That(dsrv, Is.EqualTo(0));
180 TestHelpers.InMethod();
183 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'Hello' : { 'World' : 'Two' } }");
186 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Hello.World");
187 Assert.That(value, Is.EqualTo(
"Two"));
192 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Hello");
193 Assert.That(value, Is.EqualTo(
""));
198 string fakeValueGet = (string)InvokeOp(
"JsonGetValue", storeId,
"foo");
199 Assert.That(fakeValueGet, Is.EqualTo(
""));
204 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
205 string fakeStoreValueGet = (string)InvokeOp(
"JsonGetValue", fakeStoreId,
"Hello");
206 Assert.That(fakeStoreValueGet, Is.EqualTo(
""));
213 TestHelpers.InMethod();
216 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'Hello' : { 'World' : 'Two' } }");
219 string value = (string)InvokeOp(
"JsonGetJson", storeId,
"Hello.World");
220 Assert.That(value, Is.EqualTo(
"'Two'"));
225 string value = (string)InvokeOp(
"JsonGetJson", storeId,
"Hello");
226 Assert.That(value, Is.EqualTo(
"{\"World\":\"Two\"}"));
231 string fakeValueGet = (string)InvokeOp(
"JsonGetJson", storeId,
"foo");
232 Assert.That(fakeValueGet, Is.EqualTo(
""));
237 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
238 string fakeStoreValueGet = (string)InvokeOp(
"JsonGetJson", fakeStoreId,
"Hello");
239 Assert.That(fakeStoreValueGet, Is.EqualTo(
""));
269 TestHelpers.InMethod();
274 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'Hello' : 'World' }");
276 int returnValue = (int)InvokeOp(
"JsonRemoveValue", storeId,
"Hello");
277 Assert.That(returnValue, Is.EqualTo(1));
279 int result = (int)InvokeOp(
"JsonGetNodeType", storeId,
"Hello");
280 Assert.That(result, Is.EqualTo(JsonStoreScriptModule.JSON_NODETYPE_UNDEF));
282 string returnValue2 = (string)InvokeOp(
"JsonGetValue", storeId,
"Hello");
283 Assert.That(returnValue2, Is.EqualTo(
""));
288 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'Hello' : { 'World' : 'Wally' } }");
290 int returnValue = (int)InvokeOp(
"JsonRemoveValue", storeId,
"Hello");
291 Assert.That(returnValue, Is.EqualTo(1));
293 int result = (int)InvokeOp(
"JsonGetNodeType", storeId,
"Hello");
294 Assert.That(result, Is.EqualTo(JsonStoreScriptModule.JSON_NODETYPE_UNDEF));
296 string returnValue2 = (string)InvokeOp(
"JsonGetJson", storeId,
"Hello");
297 Assert.That(returnValue2, Is.EqualTo(
""));
303 = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'Hello' : [ 'value1', 'value2' ] }");
305 int returnValue = (int)InvokeOp(
"JsonRemoveValue", storeId,
"Hello[0]");
306 Assert.That(returnValue, Is.EqualTo(1));
308 int result = (int)InvokeOp(
"JsonGetNodeType", storeId,
"Hello[0]");
309 Assert.That(result, Is.EqualTo(JsonStoreScriptModule.JSON_NODETYPE_VALUE));
311 result = (int)InvokeOp(
"JsonGetNodeType", storeId,
"Hello[1]");
312 Assert.That(result, Is.EqualTo(JsonStoreScriptModule.JSON_NODETYPE_UNDEF));
314 string stringReturnValue = (string)InvokeOp(
"JsonGetValue", storeId,
"Hello[0]");
315 Assert.That(stringReturnValue, Is.EqualTo(
"value2"));
317 stringReturnValue = (string)InvokeOp(
"JsonGetJson", storeId,
"Hello[1]");
318 Assert.That(stringReturnValue, Is.EqualTo(
""));
323 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'Hello' : 'World' }");
325 int fakeValueRemove = (int)InvokeOp(
"JsonRemoveValue", storeId,
"Cheese");
326 Assert.That(fakeValueRemove, Is.EqualTo(0));
331 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
332 int fakeStoreValueRemove = (int)InvokeOp(
"JsonRemoveValue", fakeStoreId,
"Hello");
333 Assert.That(fakeStoreValueRemove, Is.EqualTo(0));
404 TestHelpers.InMethod();
407 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'Hello' : { 'World' : [ 'one', 2 ] } }");
410 int result = (int)InvokeOp(
"JsonGetArrayLength", storeId,
"Hello.World");
411 Assert.That(result, Is.EqualTo(2));
416 int result = (int)InvokeOp(
"JsonGetArrayLength", storeId,
"Hello");
417 Assert.That(result, Is.EqualTo(-1));
422 int result = (int)InvokeOp(
"JsonGetArrayLength", storeId,
"foo");
423 Assert.That(result, Is.EqualTo(-1));
428 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
429 int result = (int)InvokeOp(
"JsonGetArrayLength", fakeStoreId,
"Hello.World");
430 Assert.That(result, Is.EqualTo(-1));
437 TestHelpers.InMethod();
440 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'Hello' : { 'World' : [ 'one', 2 ] } }");
443 int result = (int)InvokeOp(
"JsonGetNodeType", storeId,
".");
444 Assert.That(result, Is.EqualTo(JsonStoreScriptModule.JSON_NODETYPE_OBJECT));
448 int result = (int)InvokeOp(
"JsonGetNodeType", storeId,
"Hello");
449 Assert.That(result, Is.EqualTo(JsonStoreScriptModule.JSON_NODETYPE_OBJECT));
453 int result = (int)InvokeOp(
"JsonGetNodeType", storeId,
"Hello.World");
454 Assert.That(result, Is.EqualTo(JsonStoreScriptModule.JSON_NODETYPE_ARRAY));
458 int result = (int)InvokeOp(
"JsonGetNodeType", storeId,
"Hello.World[0]");
459 Assert.That(result, Is.EqualTo(JsonStoreScriptModule.JSON_NODETYPE_VALUE));
463 int result = (int)InvokeOp(
"JsonGetNodeType", storeId,
"Hello.World[1]");
464 Assert.That(result, Is.EqualTo(JsonStoreScriptModule.JSON_NODETYPE_VALUE));
469 int result = (int)InvokeOp(
"JsonGetNodeType", storeId,
"foo");
470 Assert.That(result, Is.EqualTo(JsonStoreScriptModule.JSON_NODETYPE_UNDEF));
475 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
476 int result = (int)InvokeOp(
"JsonGetNodeType", fakeStoreId,
".");
477 Assert.That(result, Is.EqualTo(JsonStoreScriptModule.JSON_NODETYPE_UNDEF));
484 TestHelpers.InMethod();
490 string result = m_jssm.JsonList2Path(UUID.Zero, UUID.Zero,
new object[] {
"foo" });
491 Assert.That(result, Is.EqualTo(
"{foo}"));
495 string result = m_jssm.JsonList2Path(UUID.Zero, UUID.Zero,
new object[] {
"foo",
"bar" });
496 Assert.That(result, Is.EqualTo(
"{foo}.{bar}"));
500 string result = m_jssm.JsonList2Path(UUID.Zero, UUID.Zero,
new object[] {
"foo", 1,
"bar" });
501 Assert.That(result, Is.EqualTo(
"{foo}.[1].{bar}"));
508 TestHelpers.InMethod();
512 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
514 int result = (int)InvokeOp(
"JsonSetValue", storeId,
"Fun",
"Times");
515 Assert.That(result, Is.EqualTo(1));
517 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Fun");
518 Assert.That(value, Is.EqualTo(
"Times"));
523 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
525 int result = (int)InvokeOp(
"JsonSetValue", storeId,
"{Fun.Circus}",
"Times");
526 Assert.That(result, Is.EqualTo(1));
528 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"{Fun.Circus}");
529 Assert.That(value, Is.EqualTo(
"Times"));
536 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
538 int result = (int)InvokeOp(
"JsonSetValue", storeId,
"Fun]Circus",
"Times");
539 Assert.That(result, Is.EqualTo(0));
541 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Fun]Circus");
542 Assert.That(value, Is.EqualTo(
""));
547 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
549 int result = (int)InvokeOp(
"JsonSetValue", storeId,
"Fun[Circus",
"Times");
550 Assert.That(result, Is.EqualTo(0));
552 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Fun[Circus");
553 Assert.That(value, Is.EqualTo(
""));
558 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
560 int result = (int)InvokeOp(
"JsonSetValue", storeId,
"Fun[]Circus",
"Times");
561 Assert.That(result, Is.EqualTo(0));
563 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Fun[]Circus");
564 Assert.That(value, Is.EqualTo(
""));
569 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
571 int result = (int)InvokeOp(
"JsonSetValue", storeId,
"{Fun]Circus}",
"Times");
572 Assert.That(result, Is.EqualTo(1));
574 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"{Fun]Circus}");
575 Assert.That(value, Is.EqualTo(
"Times"));
580 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
582 int result = (int)InvokeOp(
"JsonSetValue", storeId,
"{Fun[Circus}",
"Times");
583 Assert.That(result, Is.EqualTo(1));
585 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"{Fun[Circus}");
586 Assert.That(value, Is.EqualTo(
"Times"));
591 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
593 int result = (int)InvokeOp(
"JsonSetValue", storeId,
"{Fun[]Circus}",
"Times");
594 Assert.That(result, Is.EqualTo(1));
596 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"{Fun[]Circus}");
597 Assert.That(value, Is.EqualTo(
"Times"));
616 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
618 int result = (int)InvokeOp(
"JsonSetValue", storeId,
"Fun}Circus",
"Times");
619 Assert.That(result, Is.EqualTo(0));
621 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Fun}Circus");
622 Assert.That(value, Is.EqualTo(
""));
627 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
629 int result = (int)InvokeOp(
"JsonSetValue", storeId,
"Fun{Circus",
"Times");
630 Assert.That(result, Is.EqualTo(0));
632 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Fun}Circus");
633 Assert.That(value, Is.EqualTo(
""));
647 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
649 int result = (int)InvokeOp(
"JsonSetValue", storeId,
"{Fun{Circus}",
"Times");
650 Assert.That(result, Is.EqualTo(1));
652 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"{Fun{Circus}");
653 Assert.That(value, Is.EqualTo(
"Times"));
658 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
660 int result = (int)InvokeOp(
"JsonSetValue", storeId,
"{Fun{Filled}Circus}",
"Times");
661 Assert.That(result, Is.EqualTo(0));
663 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"{Fun{Filled}Circus}");
664 Assert.That(value, Is.EqualTo(
""));
669 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
671 int result = (int)InvokeOp(
"JsonSetValue", storeId,
"Fun.Circus",
"Times");
672 Assert.That(result, Is.EqualTo(0));
674 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Fun.Circus");
675 Assert.That(value, Is.EqualTo(
""));
680 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
681 int fakeStoreValueSet = (int)InvokeOp(
"JsonSetValue", fakeStoreId,
"Hello",
"World");
682 Assert.That(fakeStoreValueSet, Is.EqualTo(0));
689 TestHelpers.InMethod();
694 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ }");
696 int result = (int)InvokeOp(
"JsonSetJson", storeId,
"Fun",
"'Times'");
697 Assert.That(result, Is.EqualTo(1));
699 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Fun");
700 Assert.That(value, Is.EqualTo(
"Times"));
705 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ }");
707 int result = (int)InvokeOp(
"JsonSetJson", storeId,
"Fun",
"{ 'Filled' : 'Times' }");
708 Assert.That(result, Is.EqualTo(1));
710 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Fun.Filled");
711 Assert.That(value, Is.EqualTo(
"Times"));
716 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ }");
718 int result = (int)InvokeOp(
"JsonSetJson", storeId,
"Fun",
"Times");
719 Assert.That(result, Is.EqualTo(0));
721 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Fun");
722 Assert.That(value, Is.EqualTo(
""));
727 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ }");
729 int result = (int)InvokeOp(
"JsonSetJson", storeId,
"Fun.Circus",
"'Times'");
730 Assert.That(result, Is.EqualTo(0));
732 string value = (string)InvokeOp(
"JsonGetValue", storeId,
"Fun.Circus");
733 Assert.That(value, Is.EqualTo(
""));
738 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
739 int fakeStoreValueSet = (int)InvokeOp(
"JsonSetJson", fakeStoreId,
"Hello",
"'World'");
740 Assert.That(fakeStoreValueSet, Is.EqualTo(0));
754 TestHelpers.InMethod();
757 SceneObjectGroup so = SceneHelpers.CreateSceneObject(1, TestHelpers.ParseTail(0x1));
758 m_scene.AddSceneObject(so);
760 UUID storeId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'Hello':'World' }");
763 string notecardName =
"nc1";
766 UUID writeNotecardRequestId = (UUID)InvokeOpOnHost(
"JsonWriteNotecard", so.UUID, storeId,
"", notecardName);
767 Assert.That(writeNotecardRequestId, Is.Not.EqualTo(UUID.Zero));
769 TaskInventoryItem nc1Item = so.RootPart.Inventory.GetInventoryItem(notecardName);
770 Assert.That(nc1Item, Is.Not.Null);
780 string badPathNotecardName =
"badPathNotecardName";
782 UUID writeNotecardBadPathRequestId
783 = (UUID)InvokeOpOnHost(
"JsonWriteNotecard", so.UUID, storeId,
"flibble", badPathNotecardName);
784 Assert.That(writeNotecardBadPathRequestId, Is.Not.EqualTo(UUID.Zero));
786 TaskInventoryItem badPathItem = so.RootPart.Inventory.GetInventoryItem(badPathNotecardName);
787 Assert.That(badPathItem, Is.Null);
793 string fakeStoreNotecardName =
"fakeStoreNotecardName";
795 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
796 UUID fakeStoreWriteNotecardValue
797 = (UUID)InvokeOpOnHost(
"JsonWriteNotecard", so.UUID, fakeStoreId,
"", fakeStoreNotecardName);
798 Assert.That(fakeStoreWriteNotecardValue, Is.Not.EqualTo(UUID.Zero));
800 TaskInventoryItem fakeStoreItem = so.RootPart.Inventory.GetInventoryItem(fakeStoreNotecardName);
801 Assert.That(fakeStoreItem, Is.Null);
815 TestHelpers.InMethod();
818 string notecardName =
"nc1";
820 SceneObjectGroup so = SceneHelpers.CreateSceneObject(1, TestHelpers.ParseTail(0x1));
821 m_scene.AddSceneObject(so);
823 UUID creatingStoreId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'Hello':'World' }");
826 InvokeOpOnHost(
"JsonWriteNotecard", so.
UUID, creatingStoreId,
"", notecardName);
830 UUID receivingStoreId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
831 UUID readNotecardRequestId = (UUID)InvokeOpOnHost(
"JsonReadNotecard", so.
UUID, receivingStoreId,
"", notecardName);
832 Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero));
834 string value = (string)InvokeOp(
"JsonGetValue", receivingStoreId,
"Hello");
835 Assert.That(value, Is.EqualTo(
"World"));
840 UUID receivingStoreId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
841 UUID readNotecardRequestId = (UUID)InvokeOpOnHost(
"JsonReadNotecard", so.
UUID, receivingStoreId,
"make", notecardName);
842 Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero));
844 string value = (string)InvokeOp(
"JsonGetValue", receivingStoreId,
"Hello");
845 Assert.That(value, Is.EqualTo(
""));
847 value = (string)InvokeOp(
"JsonGetValue", receivingStoreId,
"make.Hello");
848 Assert.That(value, Is.EqualTo(
"World"));
853 UUID receivingStoreId = (UUID)InvokeOp(
"JsonCreateStore",
"{}");
854 UUID readNotecardRequestId = (UUID)InvokeOpOnHost(
"JsonReadNotecard", so.
UUID, receivingStoreId,
"make.it", notecardName);
855 Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero));
857 string value = (string)InvokeOp(
"JsonGetValue", receivingStoreId,
"Hello");
858 Assert.That(value, Is.EqualTo(
""));
860 value = (string)InvokeOp(
"JsonGetValue", receivingStoreId,
"make.it.Hello");
861 Assert.That(value, Is.EqualTo(
""));
866 UUID receivingStoreId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'make' : { 'it' : 'so' } }");
867 UUID readNotecardRequestId = (UUID)InvokeOpOnHost(
"JsonReadNotecard", so.
UUID, receivingStoreId,
"make.it", notecardName);
868 Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero));
870 string value = (string)InvokeOp(
"JsonGetValue", receivingStoreId,
"Hello");
871 Assert.That(value, Is.EqualTo(
""));
873 value = (string)InvokeOp(
"JsonGetValue", receivingStoreId,
"make.it.Hello");
874 Assert.That(value, Is.EqualTo(
"World"));
879 UUID receivingStoreId = (UUID)InvokeOp(
"JsonCreateStore",
"{ 'make' : { 'it' : 'so' } }");
880 UUID readNotecardRequestId = (UUID)InvokeOpOnHost(
"JsonReadNotecard", so.
UUID, receivingStoreId,
"/", notecardName);
881 Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero));
883 string value = (string)InvokeOp(
"JsonGetValue", receivingStoreId,
"Hello");
884 Assert.That(value, Is.EqualTo(
""));
889 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
890 UUID readNotecardRequestId = (UUID)InvokeOpOnHost(
"JsonReadNotecard", so.
UUID, fakeStoreId,
"", notecardName);
891 Assert.That(readNotecardRequestId, Is.Not.EqualTo(UUID.Zero));
893 string value = (string)InvokeOp(
"JsonGetValue", fakeStoreId,
"Hello");
894 Assert.That(value, Is.EqualTo(
""));
898 public object DummyTestMethod(
object o1,
object o2,
object o3,
object o4,
object o5) {
return null; }
object DummyTestMethod(object o1, object o2, object o3, object o4, object o5)
void TestJsonRemoveValue()
void TestJsonGetArrayLength()
void TestJsonDestroyStore()
A scene object group is conceptually an object in the scene. The object is constituted of SceneObject...
Represents an item in a task inventory
void TestJsonCreateStore()
void TestJsonReadNotecard()
Test for reading json from a notecard
void TestJsonWriteNotecard()
Test for writing json to a notecard
Helpers for setting up scenes.
void TestJsonDestroyStoreNotExists()
Interactive OpenSim region server
void TestJsonGetNodeType()
Tests for inventory functions in LSL