public virtual void TestLong() { DeleteBase("testLong.ndb"); const long i = 259999865; IFileSystemInterface fsi = new FileSystemInterface(new FileIdentification("testLong.ndb"), MultiBuffer.DefaultBufferSizeForData, new MockSession("test")); fsi.SetWritePosition(0, false); fsi.WriteLong(i, false); fsi.Close(); fsi = new FileSystemInterface(new FileIdentification("testLong.ndb"), MultiBuffer.DefaultBufferSizeForData, new MockSession("test")); fsi.SetReadPosition(0); var i2 = fsi.ReadLong(); AssertEquals(i, i2); fsi.Close(); }
public virtual void TestLong() { DeleteBase("testLong.ndb"); const long i = 259999865; IFileSystemInterface fsi = new FileSystemInterface(new FileIdentification("testLong.ndb"), MultiBuffer.DefaultBufferSizeForData, new MockSession("test")); fsi.SetWritePosition(0, false); fsi.WriteLong(i, false); fsi.Close(); fsi = new FileSystemInterface(new FileIdentification("testLong.ndb"), MultiBuffer.DefaultBufferSizeForData, new MockSession("test")); fsi.SetReadPosition(0); var i2 = fsi.ReadLong(); AssertEquals(i, i2); fsi.Close(); }