Exemplo n.º 1
0
        public void Vector4Test()
        {
            int     size  = sizeof(float) * 8 * 4;
            Vector4 value = new Vector4(rnd.NextSmallFloat(), rnd.NextSmallFloat(), rnd.NextSmallFloat(), rnd.NextSmallFloat());

            stream.WriteVector4(value);

            Assert.AreEqual(size, stream.BitOffset);
            stream.ResetRead();

            Assert.AreEqual(value, stream.ReadVector4());
            Assert.AreEqual(size, stream.BitOffset);
        }