예제 #1
0
 public virtual void TestBigInteger()
 {
     DeleteBase("testBigDecimal.ndb");
     var bd = Convert.ToDecimal("-128451");
     IFileSystemInterface fsi = new FileSystemInterface(new FileIdentification("testBigDecimal.ndb"),
                                                        MultiBuffer.DefaultBufferSizeForData,
                                                        new MockSession("test"));
     fsi.SetWritePosition(0, false);
     fsi.WriteBigDecimal(bd, false);
     fsi.Close();
     fsi = new FileSystemInterface(new FileIdentification("testBigDecimal.ndb"),
                                   MultiBuffer.DefaultBufferSizeForData, new MockSession("test"));
     fsi.SetReadPosition(0);
     var bd2 = fsi.ReadBigDecimal();
     AssertEquals(bd, bd2);
     fsi.Close();
 }
        public virtual void TestBigInteger()
        {
            DeleteBase("testBigDecimal.ndb");
            var bd = Convert.ToDecimal("-128451");
            IFileSystemInterface fsi = new FileSystemInterface(new FileIdentification("testBigDecimal.ndb"),
                                                               MultiBuffer.DefaultBufferSizeForData,
                                                               new MockSession("test"));

            fsi.SetWritePosition(0, false);
            fsi.WriteBigDecimal(bd, false);
            fsi.Close();
            fsi = new FileSystemInterface(new FileIdentification("testBigDecimal.ndb"),
                                          MultiBuffer.DefaultBufferSizeForData, new MockSession("test"));
            fsi.SetReadPosition(0);
            var bd2 = fsi.ReadBigDecimal();

            AssertEquals(bd, bd2);
            fsi.Close();
        }