public void OSMTagsCollectionRemoveReturnsFalseWhenRemovingItemFromEmptyCollection() { OSMTagsCollection target = new OSMTagsCollection(); OSMTag tag = new OSMTag("test-key", "test-value"); Assert.False(target.Remove(tag)); }
public void OSMTagsCollectionRemoveCanRemoveTagFromCollection() { OSMTagsCollection target = new OSMTagsCollection(); OSMTag tag = new OSMTag("test-key", "test-value"); target.Add(tag); Assert.True(target.Remove(tag)); Assert.Equal(0, target.Count); }