Esempio n. 1
0
        public void can_seek_backwards_no_prefix()
        {
            using var store = new CheckpointStore(fixture.CheckpointPath);
            var actual = store.Seek(Array.Empty <byte>(), SeekDirection.Backward).ToArray();

            actual.Should().BeEmpty();
        }
Esempio n. 2
0
        public void seek_backwards_with_prefix()
        {
            using var store = new CheckpointStore(fixture.CheckpointPath);

            var actual   = store.Seek(Bytes(2), SeekDirection.Backward);
            var expected = CheckpointFixture.GetSeekData().Where(kvp => kvp.Item1[0] <= 0x01).Reverse();

            actual.Should().BeEquivalentTo(expected);
        }
Esempio n. 3
0
        public void can_seek_forward_no_prefix()
        {
            using var store = new CheckpointStore(fixture.CheckpointPath);

            var actual   = store.Seek(Array.Empty <byte>(), SeekDirection.Forward);
            var expected = CheckpointFixture.GetSeekData();

            actual.Should().BeEquivalentTo(expected);
        }