public void ReturnsOneBucketPerDirectory() { Directory.CreateDirectory(Path.Combine(KeyValueStorePath, "foo")); Directory.CreateDirectory(Path.Combine(KeyValueStorePath, "bar")); var buckets = KeyValueStore.GetBuckets(); Assert.That(buckets.Count(), Is.EqualTo(2)); }
public void ReturnsBucketsWhoseNamesCorrespondToTheirDirectory() { Directory.CreateDirectory(Path.Combine(KeyValueStorePath, "foo")); var buckets = KeyValueStore.GetBuckets(); var bucket = buckets.First(); Assert.That(bucket.Name, Is.EqualTo("foo")); }