Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public void StripsInvalidCharactersFromABucketName()
        {
            var bucket = KeyValueStore.GetBucket("<foo>");

            Assert.That(bucket.Name, Is.EqualTo("foo"));
        }
Exemplo n.º 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);
 }