public virtual void TestShort()
        {
            DeleteBase("testShort.ndb");
            const short          s   = 4598;
            IFileSystemInterface fsi = new FileSystemInterface(new FileIdentification("testShort.ndb"),
                                                               MultiBuffer.DefaultBufferSizeForData,
                                                               new MockSession("test"));

            fsi.SetWritePosition(0, false);
            fsi.WriteShort(s, false);
            fsi.Close();
            fsi = new FileSystemInterface(new FileIdentification("testShort.ndb"),
                                          MultiBuffer.DefaultBufferSizeForData, new MockSession("test"));
            fsi.SetReadPosition(0);
            var s2 = fsi.ReadShort();

            AssertEquals(s, s2);
            fsi.Close();
        }
Exemplo n.º 2
0
 public virtual void TestShort()
 {
     DeleteBase("testShort.ndb");
     const short s = 4598;
     IFileSystemInterface fsi = new FileSystemInterface(new FileIdentification("testShort.ndb"),
                                                        MultiBuffer.DefaultBufferSizeForData,
                                                        new MockSession("test"));
     fsi.SetWritePosition(0, false);
     fsi.WriteShort(s, false);
     fsi.Close();
     fsi = new FileSystemInterface(new FileIdentification("testShort.ndb"),
                                   MultiBuffer.DefaultBufferSizeForData, new MockSession("test"));
     fsi.SetReadPosition(0);
     var s2 = fsi.ReadShort();
     AssertEquals(s, s2);
     fsi.Close();
 }