public void CheckUInt32Array() { MemoryStream buffer = new MemoryStream(); IFieldWriter writer = new FieldWriter(buffer); IFieldReader reader = new FieldReader(buffer); UInt32[] array1 = new UInt32[] {}; UInt32[] array2 = new UInt32[] { 1 }; UInt32[] array3 = new UInt32[] { 0, 0, 0, 0, 0, 0 }; UInt32[] array4 = new UInt32[] { 0, 1, 2, 3, 4, 5 }; UInt32[] array5 = new UInt32[] { 0, 1, 1, 2, 2, 2 }; UInt32[] array6 = new UInt32[] { 0, 1, 1, 2, 2, 2, 3 }; writer.Write(array1); writer.Write(array2); writer.Write(array3); writer.Write(array4); writer.Write(array5); writer.Write(array6); buffer.Position = 0; array1.CompareArray(reader.ReadUInt32Array()); array2.CompareArray(reader.ReadUInt32Array()); array3.CompareArray(reader.ReadUInt32Array()); array4.CompareArray(reader.ReadUInt32Array()); array5.CompareArray(reader.ReadUInt32Array()); array6.CompareArray(reader.ReadUInt32Array()); }