public void ReadBool() { byte[] data = new byte[3] { 0x01, 0x00, 0x03 }; UnityBinaryReader r = new UnityBinaryReader(data); Assert.AreEqual <bool>(true, r.ReadBool()); Assert.AreEqual <bool>(false, r.ReadBool()); Assert.AreEqual <bool>(true, r.ReadBool()); }