public void SerializeFormattedTest() { // This is not a real test. Instead look at the console.out tab for how formatted notation looks like. LLSDArray llsdArray = new LLSDArray(); LLSD llsdOne = LLSD.FromInteger(1); LLSD llsdTwo = LLSD.FromInteger(1); llsdArray.Add(llsdOne); llsdArray.Add(llsdTwo); string sOne = LLSDParser.SerializeNotationFormatted(llsdArray); Console.Write(sOne); LLSDMap llsdMap = new LLSDMap(); LLSD llsdThree = LLSD.FromInteger(2); llsdMap["test1"] = llsdThree; LLSD llsdFour = LLSD.FromInteger(2); llsdMap["test2"] = llsdFour; llsdArray.Add(llsdMap); string sTwo = LLSDParser.SerializeNotationFormatted(llsdArray); Console.Write(sTwo); LLSDArray llsdArrayTwo = new LLSDArray(); LLSD llsdFive = LLSD.FromString("asdflkhjasdhj"); LLSD llsdSix = LLSD.FromString("asdkfhasjkldfghsd"); llsdArrayTwo.Add(llsdFive); llsdArrayTwo.Add(llsdSix); llsdMap["test3"] = llsdArrayTwo; string sThree = LLSDParser.SerializeNotationFormatted(llsdArray); Console.Write(sThree); // we also try to parse this... and look a little at the results LLSDArray llsdSeven = (LLSDArray)LLSDParser.DeserializeNotation(sThree); Assert.AreEqual(LLSDType.Array, llsdSeven.Type); Assert.AreEqual(3, llsdSeven.Count); Assert.AreEqual(LLSDType.Integer, llsdSeven[0].Type); Assert.AreEqual(1, llsdSeven[0].AsInteger()); Assert.AreEqual(LLSDType.Integer, llsdSeven[1].Type); Assert.AreEqual(1, llsdSeven[1].AsInteger()); Assert.AreEqual(LLSDType.Map, llsdSeven[2].Type); // thats enough for now. }