Axiom.UnitTests.Serialization.BitConverterExtensionTests.Vector3SetBytes C# (CSharp) Method

Vector3SetBytes() private method

private Vector3SetBytes ( ) : void
return void
        public void Vector3SetBytes()
        {
            Vector3 expected = new Vector3(2.0f, 1.0f, 3.0f);

            byte[] data = new byte[]
                              {
                                   0, 0, 0, 64,0, 0, 128, 63, 0, 0, 64, 64
                              };
            Vector3 actual = BitConverterEx.SetBytes<Vector3>(data);

            Assert.AreEqual(expected, actual);
        }
        #endregion Vector3