public void CreatesTheBucketsDirectoryIfItDoesNotExist() { var bucketDirectoryPath = Path.Combine(KeyValueStorePath, "foo"); Assert.That(Directory.Exists(bucketDirectoryPath), Is.False); KeyValueStore.GetBucket("foo"); Assert.That(Directory.Exists(bucketDirectoryPath), Is.True); }
public void StripsInvalidCharactersFromABucketName() { var bucket = KeyValueStore.GetBucket("<foo>"); Assert.That(bucket.Name, Is.EqualTo("foo")); }
public void ReturnsABucketWhoseNameCorrespondsToItsDirectory() { var bucket = KeyValueStore.GetBucket("foo"); Assert.That(bucket.Name, Is.EqualTo("foo")); }
public new void Setup() { Bucket = (DirectoryBucket)KeyValueStore.GetBucket(BucketName); }