public void Caching_Exists_Should_Ignore_NonExisting_Key() { var storage = new Cactus.Blade.Caching.Caching(); var nonexisting_key = Guid.NewGuid().ToString(); var target = storage.Exists(nonexisting_key); target.Should().BeFalse(); }
public void Caching_Exists_Should_Locate_Existing_Key() { var storage = new Cactus.Blade.Caching.Caching(); var expected_key = Guid.NewGuid().ToString(); storage.Store(expected_key, Guid.NewGuid().ToString()); var target = storage.Exists(expected_key); target.Should().BeTrue(); }