public void ReadLengthPrefixedString() { var img = new LeImageReader( new LoadedImage( Address.Ptr32(0x10000), new byte[] { 0x12, 0x34, 0x03, 0x00, 0x00, 0x00, 0x46, 0x00, 0x6f, 0x00, 0x6f, 0x00, 0x02, 0x02}), 2); StringConstant str = img.ReadLengthPrefixedString(PrimitiveType.Int32, PrimitiveType.WChar); Assert.AreEqual("Foo", str.ToString()); }