示例#1
0
        public void Numbers_ulong_Normal(ulong number)
        {
            ResetBois();

            NumericSerializers.WriteVarInt(Writer, number);
            ResetStream();

            var final = NumericSerializers.ReadVarUInt64(Reader);

            final.Should().Be(number);
        }
示例#2
0
        public void Numbers_IntNullable_Normal(int?number)
        {
            ResetBois();

            NumericSerializers.WriteVarInt(Writer, number);
            ResetStream();

            var final = NumericSerializers.ReadVarInt32Nullable(Reader);

            final.Should().Be(number);
        }
示例#3
0
        public void Numbers_short_Normal(short number)
        {
            ResetBois();

            NumericSerializers.WriteVarInt(Writer, number);
            ResetStream();

            var final = NumericSerializers.ReadVarInt16(Reader);

            final.Should().Be(number);
        }