public void FromUInt16ToByteArray() { UInt16 value = 123; var result = value.To <byte[]>(); var expect = BitConverter.GetBytes(value); Assert.True(result.SequenceEqual(expect)); }