void ReadComplex(IPersistableReader reader) { Assert.AreEqual(reader.ReadOptionalBool(), TestValues.aNullableBool); var intList = new List <int>(); reader.ReadIntListInto(intList); CollectionAssert.AreEqual(intList, TestValues.aIntList); var floatList = new List <float>(); reader.ReadFloatListInto(floatList); CollectionAssert.AreEqual(floatList, TestValues.aFloatList); var stringList = new List <string>(); reader.ReadStringListInto(stringList); CollectionAssert.AreEqual(stringList, TestValues.aStringList); var intArray = reader.ReadIntArray(); CollectionAssert.AreEqual(intArray, TestValues.aIntArray); var floatArray = reader.ReadFloatArray(); CollectionAssert.AreEqual(floatArray, TestValues.aFloatArray); var stringArray = reader.ReadStringArray(); CollectionAssert.AreEqual(stringArray, TestValues.aStringArray); }