Ejemplo n.º 1
0
        public void NonExistantValuesCanBeRemovedWithoutSideEffects()
        {
            UserDataCollection collection = new UserDataCollection();

            collection.RemoveValue(new Key <int>("key"));
            Assert.IsFalse(collection.HasValue(new Key <int>("key")));
        }
Ejemplo n.º 2
0
        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")));
 }