public void NonExistantValuesCanBeRemovedWithoutSideEffects() { UserDataCollection collection = new UserDataCollection(); collection.RemoveValue(new Key <int>("key")); Assert.IsFalse(collection.HasValue(new Key <int>("key"))); }
public void ExistingValuesCanBeRemoved() { UserDataCollection collection = new UserDataCollection(); collection.SetValue(new Key <int>("key"), 123); Assert.IsTrue(collection.HasValue(new Key <int>("key"))); collection.RemoveValue(new Key <int>("key")); Assert.IsFalse(collection.HasValue(new Key <int>("key"))); }
public void ExistingValuesCanBeRemoved() { UserDataCollection collection = new UserDataCollection(); collection.SetValue(new Key<int>("key"), 123); Assert.IsTrue(collection.HasValue(new Key<int>("key"))); collection.RemoveValue(new Key<int>("key")); Assert.IsFalse(collection.HasValue(new Key<int>("key"))); }
public void NonExistantValuesCanBeRemovedWithoutSideEffects() { UserDataCollection collection = new UserDataCollection(); collection.RemoveValue(new Key<int>("key")); Assert.IsFalse(collection.HasValue(new Key<int>("key"))); }