public void Vector4HalfTest() { int size = sizeof(float) * 4 * 4; Vector4 value = new Vector4(rnd.NextSmallFloat(), rnd.NextSmallFloat(), rnd.NextSmallFloat(), rnd.NextSmallFloat()); stream.WriteVector4Half(value); Assert.AreEqual(size, stream.BitOffset); stream.ResetRead(); AreSimilar(value, stream.ReadVector4Half(), 0.001f); Assert.AreEqual(size, stream.BitOffset); }