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

Vector3GetBytes() private method

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

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

            Assert.AreElementsEqual( expected, actual );
        }