Пример #1
0
        public void Vector2Test()
        {
            Vector2 value = new Vector2(rnd.NextFloat(), rnd.NextFloat());

            stream.Skip(1);
            stream.WriteVector2(value);

            Assert.AreEqual(65, stream.BitOffset);
            stream.ResetRead();
            stream.Skip(1);

            Assert.AreEqual(value, stream.ReadVector2());
            Assert.AreEqual(65, stream.BitOffset);
        }