public void Storage_CanClearEmptyStorage() { var defaultStore = IsolatedStorageFile.GetUserStoreForApplication(); const string containerName = "test4-container-name"; var storage = new ApplicationStorage(defaultStore, containerName); storage.ClearValues(); }
public void Storage_CanClearFilledStorage() { var defaultStore = IsolatedStorageFile.GetUserStoreForApplication(); var storage = new ApplicationStorage(defaultStore); // Storage an item within the storage. const string key = "appstorage-test-key1"; // Make sure we clean up after a prior run storage.RemoveValue(key); Assert.False(storage.TryGetValue(key, out string value0)); Assert.Null(value0); // Make sure we can clear the values. storage.ClearValues(); }