Exemple #1
0
        public void Numbers_decimalNullable_Normal(decimal?number)
        {
            ResetBois();

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

            var final = NumericSerializers.ReadVarDecimalNullable(Reader);

            final.Should().Be(number);
        }
Exemple #2
0
        public void Numbers_float_Normal(float number)
        {
            ResetBois();

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

            var final = NumericSerializers.ReadVarSingle(Reader);

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