Пример #1
0
        public void TagNode_retrieves_specified_property_with_value(string propertyName)
        {
            // ARRANGE

            var tag = DefaultTag(WithDefaultProperty);

            // ACT

            var result = new TagNode(tag).GetItemProperties(this.ProviderContextMock.Object, propertyName.Yield());

            // ASSERT

            Assert.Equal(nameof(Tag.Name), result.Single().Name);
            Assert.Equal(tag.Name, result.Single().Value);
        }