public void RemoveTest() { IsolatedStorage storage = new IsolatedStorage(); string value = "test"; string key = "String"; storage.AddItem(key, value); Assert.IsTrue(storage.ContainItem(key)); storage.RemoveItem(key); Assert.IsFalse(storage.ContainItem(key)); }
public void FlushTest() { IsolatedStorage storage = new IsolatedStorage(); storage.AddItem("String1", "test"); storage.AddItem("String2", "test"); storage.AddItem("String3", "test"); storage.AddItem("String4", "test"); storage.FlushAll(); Assert.IsFalse(storage.ContainItem("String1")); Assert.IsFalse(storage.ContainItem("String2")); Assert.IsFalse(storage.ContainItem("String3")); Assert.IsFalse(storage.ContainItem("String4")); }