Example #1
0
        public void VectorSerializeTest()
        {
            m_stream.SerializeBlit(ref m_testStruct);
            Assert.AreEqual(m_size * 8, m_stream.BitOffset);

            m_stream.ResetRead();
            Vector3 result = new Vector3();

            m_stream.SerializeBlit(ref result);
            Assert.AreEqual(m_testStruct, result);
        }