Exemple #1
0
        public void KeyValueDataStore_StoresData()
        {
            var kvStore = new KeyValueDataStore(_filename);

            kvStore.Set("key", true);
            Assert.That(kvStore.ContainsBoolKey("key"), Is.True);
            Assert.That(kvStore.GetBool("key"), Is.True);
        }
Exemple #2
0
        public void KeyValueDataStore_AllowsDeletionOfAllData()
        {
            var kvStore = new KeyValueDataStore(_filename);

            kvStore.Set("key", true);
            kvStore.DeleteAll();
            Assert.That(kvStore.ContainsBoolKey("key"), Is.False);
        }
Exemple #3
0
        public void KeyValueDataStore_StartsEmpty()
        {
            var kvStore = new KeyValueDataStore(_filename);

            Assert.That(kvStore.ContainsBoolKey("key"), Is.False);
        }