public void GetTag_ReturnsTagIfCollectionContainsTag() { TagsCollection target = new TagsCollection(_tags); Tag returned = target.GetTag(_tags[0].Key); Assert.Same(_tags[0], returned); }
public void GetTag_ReturnsNullIfCollectionDoesNotContainTag() { TagsCollection target = new TagsCollection(_tags); Assert.Throws<ArgumentException>(() => target.GetTag("other-key")); }
public void GetTag_ReturnsNullForEmptyCollection() { TagsCollection target = new TagsCollection(); Assert.Throws<ArgumentException>(() => target.GetTag("other-key")); }
public void GetTag_ReturnsNullIfCollectionDoesNotContainTag() { TagsCollection target = new TagsCollection(_tags); Assert.Throws <ArgumentException>(() => target.GetTag("other-key")); }
public void GetTag_ReturnsNullForEmptyCollection() { TagsCollection target = new TagsCollection(); Assert.Throws <ArgumentException>(() => target.GetTag("other-key")); }