コード例 #1
0
        public void can_get_value_from_store()
        {
            var(key, value) = CheckpointFixture.GetSeekData().First();

            using var store = new CheckpointStore(fixture.CheckpointPath);
            store.Contains(key).Should().BeTrue();
            store.TryGet(key).Should().BeEquivalentTo(value);
        }
コード例 #2
0
 public void contains_false_for_missing_key()
 {
     using var store = new CheckpointStore(fixture.CheckpointPath);
     store.Contains(Bytes("invalid-key")).Should().BeFalse();
 }