public void Test_FromUInt64(ulong value, int offset, bool useNbo, byte[] expected) { var converter = new DefaultConverter(); var actual = new byte[expected.Length]; converter.FromUInt64(value, ref actual, offset, useNbo); Assert.Equal(expected, actual); }
public void Test_FromUInt64_NoNboSpecified(ulong value, int offset, byte[] expected) { var converter = new DefaultConverter(); var actual = new byte[expected.Length]; converter.FromUInt64(value, actual, offset); Assert.Equal(expected, actual); }
public void Test_FromUInt64() { var converter = new DefaultConverter(); var actual = new byte[15]; converter.FromUInt64(5, actual, 3); var expected = new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00 }; Assert.AreEqual(expected, actual); }