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

Int32GetBytes() private method

private Int32GetBytes ( ) : void
return void
        public void Int32GetBytes()
        {
            Int32 data = 42;

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

            Assert.AreElementsEqual(expected, actual);
        }