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); }
public void KeyValueDataStore_AllowsDeletionOfAllData() { var kvStore = new KeyValueDataStore(_filename); kvStore.Set("key", true); kvStore.DeleteAll(); Assert.That(kvStore.ContainsBoolKey("key"), Is.False); }
public void KeyValueDataStore_StartsEmpty() { var kvStore = new KeyValueDataStore(_filename); Assert.That(kvStore.ContainsBoolKey("key"), Is.False); }