Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        public void NoopTagContextBuilder_Remove_DisallowsNullKey()
        {
            ITagContextBuilder noopBuilder = NoopTags.NoopTagContextBuilder;

            Assert.Throws <ArgumentNullException>(() => noopBuilder.Remove(null));
        }