public void ReadNullTerminatedString_Sync() { using (var f = new GenericFile()) { f.CreateFile(new byte[] { 0x50, 0x6F, 0x6B, 0xC3, 0xA9, 0x6D, 0x6F, 0x6E, 0x00, 0x50, 0x6F, 0x6B, 0xC3, 0xA9, 0x6D, 0x6F, 0x6E, 0x00 }); Assert.AreEqual("Pokémon", f.ReadNullTerminatedString(0, Encoding.UTF8)); } }