public void GivenCommentAttributeWithName_WhenSearchingByName_ShouldBeSameAsTheAddedOne()
        {
            NewElement element   = AttributesMapperSettersTests.InitializeEmptyNewElement();
            string     fieldName = "WFD_Comment1";
            var        att       = new CommentAttribute()
            {
                FieldName = fieldName
            };

            element.CommentAttributes.Add(att);

            var foundAttribute = AttributesMapper.GetAttributeByName <CommentAttribute>(element, fieldName);

            foundAttribute.Should().Be(att);
        }
        public void GivenCommentAttributeWithName_WhenSearchingByName_ShouldNotThrow()
        {
            NewElement element   = AttributesMapperSettersTests.InitializeEmptyNewElement();
            string     fieldName = "WFD_Comment1";
            var        att       = new CommentAttribute()
            {
                FieldName = fieldName
            };

            element.CommentAttributes.Add(att);

            Action a = () => AttributesMapper.GetAttributeByName <CommentAttribute>(element, fieldName);

            a.Should().NotThrow <FieldNotFoundException>();
        }