Beispiel #1
0
        public void CheckNullValueProcessTag(string key, object value)
        {
            var attributeEnumerationState = new AttributeEnumerationState
            {
                Tags = PooledList <KeyValuePair <string, object> > .Create(),
            };

            attributeEnumerationState.ForEach(new KeyValuePair <string, object>(key, value));

            Assert.Empty(attributeEnumerationState.Tags);
        }
Beispiel #2
0
        public void CheckProcessTag(string key, object value)
        {
            var attributeEnumerationState = new AttributeEnumerationState
            {
                Tags = PooledList <KeyValuePair <string, object> > .Create(),
            };

            attributeEnumerationState.ForEach(new KeyValuePair <string, object>(key, value));

            Assert.Equal(key, attributeEnumerationState.Tags[0].Key);
            Assert.Equal(value, attributeEnumerationState.Tags[0].Value);
        }