public void ReadWriteDecimal()
        {
            IValueWriter writer = GetWriter();

            writer.WriteDecimal(Decimal.MaxValue);
            writer.WriteDecimal(Decimal.MaxValue / 2);
            writer.WriteDecimal(Decimal.MinValue);
            writer.Flush();

            IValueReader reader = GetReader(writer);

            Assert.AreEqual(Decimal.MaxValue, reader.ReadDecimal());
            Assert.AreEqual(Decimal.MaxValue / 2, reader.ReadDecimal());
            Assert.AreEqual(Decimal.MinValue, reader.ReadDecimal());
        }
Beispiel #2
0
 public void WriteValue(IValueWriter valueWriter, decimal value)
 {
     valueWriter.WriteDecimal(value);
 }