public void ClearStorage() { string key = "a", value = "b"; storage.SetItem(key, value); storage.Clear(); Assert.IsNull(storage.GetItem(key)); }
public void ClearStorage() { if (storage == null) { Assert.Ignore("Driver does not support web storage"); } string key = "a", value = "b"; storage.SetItem(key, value); storage.Clear(); Assert.That(storage.GetItem(key), Is.Null); }
public ValueTask Clear() => _localStorage.Clear();