public void TestInMemmoryReset() { var settings = new ApplicationDataContainer(); settings.Values[key1] = val1; settings.Values[key1] = val2; settings.Values[key1] = val3; Assert.AreEqual(settings.Values[key1], val3); settings.DeleteAsync().Wait(); }
public void TestPersistentSet() { var settings = new ApplicationDataContainer(); settings.Values[key1] = val1; settings.Values[key2] = val2; settings.Values[key3] = val3; settings = new ApplicationDataContainer(); Assert.AreEqual(settings.Values[key1], val1); Assert.AreEqual(settings.Values[key2], val2); Assert.AreEqual(settings.Values[key3], val3); settings.DeleteAsync().Wait(); }
public void TestInMemmoryRemove() { var settings = new ApplicationDataContainer(); settings.Values[key1] = val1; settings.Values[key2] = val2; settings.Values[key3] = val3; settings.Values.Remove(key2); Assert.AreEqual(settings.Values[key1], val1); Assert.IsNull(settings.Values[key2]); Assert.AreEqual(settings.Values[key3], val3); settings.DeleteAsync().Wait(); }