public void Remove_NullKey() { TagContext tags = new TagContext(new Dictionary <ITagKey, ITagValue>() { { K1, V1 } }); ITagContextBuilder builder = tagger.ToBuilder(tags); Assert.Throws <ArgumentNullException>(() => builder.Remove(null)); }
public void NoopTagContextBuilder_Remove_DisallowsNullKey() { ITagContextBuilder noopBuilder = NoopTags.NoopTagContextBuilder; Assert.Throws <ArgumentNullException>(() => noopBuilder.Remove(null)); }