public void original_record1_can_be_read_at_position()
        {
            var res = _scavengedChunk.TryReadAt((int)_res1.OldPosition);

            Assert.IsTrue(res.Success);
            Assert.AreEqual(_rec1, res.LogRecord);
        }
예제 #2
0
        public void the_first_record_can_be_read_at_position()
        {
            var res = _chunk.TryReadAt((int)_position1);

            Assert.IsTrue(res.Success);
            Assert.IsTrue(res.LogRecord is IPrepareLogRecord <TStreamId>);
            Assert.AreEqual(_prepare1, res.LogRecord);
        }
        public void the_record_can_be_read_at_exact_position()
        {
            var res = _chunk.TryReadAt(0);

            Assert.IsTrue(res.Success);
            Assert.AreEqual(_record, res.LogRecord);
            Assert.AreEqual(_result.OldPosition, res.LogRecord.Position);
        }
        public void the_record_can_be_read()
        {
            var res = _uncachedChunk.TryReadAt(0);

            Assert.IsTrue(res.Success);
            Assert.AreEqual(_record, res.LogRecord);
            Assert.AreEqual(_result.OldPosition, res.LogRecord.LogPosition);
            //Assert.AreEqual(_result.NewPosition, res.NewPosition);
        }
 public void no_record_at_exact_position_can_be_read()
 {
     Assert.IsFalse(_chunk.TryReadAt(0).Success);
 }
예제 #6
0
        public void original_record1_cant_be_read_at_position()
        {
            var res = _scavengedChunk.TryReadAt((int)_res1.OldPosition);

            Assert.IsFalse(res.Success);
        }
예제 #7
0
        public void there_is_no_record_at_pos_zero()
        {
            var res = _chunk.TryReadAt(0);

            Assert.IsFalse(res.Success);
        }
        public void prepare1_cant_be_read_at_position()
        {
            var res = _scavengedChunk.TryReadAt((int)_p1.LogPosition);

            Assert.IsFalse(res.Success);
        }