예제 #1
0
        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);
        }
예제 #2
0
        public void StripsInvalidCharactersFromABucketName()
        {
            var bucket = KeyValueStore.GetBucket("<foo>");

            Assert.That(bucket.Name, Is.EqualTo("foo"));
        }
예제 #3
0
        public void ReturnsABucketWhoseNameCorrespondsToItsDirectory()
        {
            var bucket = KeyValueStore.GetBucket("foo");

            Assert.That(bucket.Name, Is.EqualTo("foo"));
        }
 public new void Setup()
 {
     Bucket = (DirectoryBucket)KeyValueStore.GetBucket(BucketName);
 }