public void AttemptedRemovalOfANonExistentKeyWillBeIgnored() { const string key = "Adult1"; _updater.Remove(key); IChangeSet <Person, string> updates = _updater.AsChangeSet(); _cache.Count.Should().Be(0); updates.Count.Should().Be(0, "Should be 0 updates"); }
public void AttemptedRemovalOfANonExistentKeyWillBeIgnored() { const string key = "Adult1"; _updater.Remove(key); IChangeSet <Person, string> updates = _updater.AsChangeSet(); Assert.AreEqual(0, _cache.Count); Assert.AreEqual(0, updates.Count, "Should be 0 updates"); }