Exemple #1
0
        public void TestCompareTo(ulong x, ulong y, int expected)
        {
            var bytes = new byte[20];

            System.Buffers.Binary.BinaryPrimitives.WriteUInt64BigEndian(bytes, x);
            var ax = new AccountId(bytes);

            System.Buffers.Binary.BinaryPrimitives.WriteUInt64BigEndian(bytes, y);
            var ay = new AccountId(bytes);

            Assert.Equal(expected, ax.CompareTo(ay));
        }