예제 #1
0
        public void ClearStorage()
        {
            string key = "a", value = "b";

            storage.SetItem(key, value);
            storage.Clear();
            Assert.IsNull(storage.GetItem(key));
        }
예제 #2
0
        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);
        }
예제 #3
0
 public ValueTask Clear() => _localStorage.Clear();