public void Int32GetBytes() { Int32 data = 42; byte[] expected = new byte[] { 42, 0, 0, 0 }; byte[] actual = BitConverterEx.GetBytes(data); Assert.AreElementsEqual(expected, actual); }