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

Vector4SetBytes() private method

private Vector4SetBytes ( ) : void
return void
        public void Vector4SetBytes()
        {
            Vector4 expected = new Vector4(2.0f, 1.0f, 3.0f, 4.0f);

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

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