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

Vector4GetBytes() private method

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

            byte[] expected = new byte[]
                              {
                                   0, 0, 0, 64, 0, 0, 128, 63, 0, 0, 64, 64, 0, 0, 128, 64
                              };
            byte[] actual = BitConverterEx.GetBytes(data);

            Assert.AreElementsEqual(expected, actual);
        }