示例#1
0
 public void ReadUnicodeString_Sync()
 {
     using (var f = new GenericFile())
     {
         f.CreateFile(new byte[] { 0x74, 0x00, 0x65, 0x00, 0x73, 0x00, 0x74, 0x00, 0x00, 0x00 });
         Assert.AreEqual("te", f.ReadUnicodeString(0, 2));
         Assert.AreEqual("test", f.ReadUnicodeString(0, 4));
     }
 }