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(); }
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); }
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); }