public void TestSingleAndCollectionOridDeserialization()
{
string raw = "single:#10:12345,collection:[#11:123,#22:1234,#33:1234567]";
ORecord record = new ORecord(ORecordType.Document, 0, UTF8Encoding.UTF8.GetBytes(raw));
Assert.IsTrue(record.Fields["single"].GetType() == typeof(ORID));
Assert.IsTrue(((ORID)record.Fields["single"]).RID == "#10:12345");
Assert.IsTrue(record.Fields["collection"].GetType() == typeof(List<object>));
List<object> collection = (List<object>)record.Fields["collection"];
Assert.IsTrue(collection[0].GetType() == typeof(ORID));
Assert.IsTrue(((ORID)collection[0]).RID == "#11:123");
Assert.IsTrue(collection[1].GetType() == typeof(ORID));
Assert.IsTrue(((ORID)collection[1]).RID == "#22:1234");
Assert.IsTrue(collection[2].GetType() == typeof(ORID));
Assert.IsTrue(((ORID)collection[2]).RID == "#33:1234567");
}