public void MapPathToIntegerInListCollectionOfGenericElements()
        {
            // Arrange
            var mapper = CreateMapper<BasicListElement<BasicElement<int>>>(new[] { "Collection.Element" });
            var objectToMap = new BasicListElement<BasicElement<int>>
                {
                    Collection =
                        new List<BasicElement<int>>
                            {
                                new BasicElement<int> {Element = 1}, new BasicElement<int> {Element = 2},
                                new BasicElement<int> {Element = 3}, new BasicElement<int> {Element = 4},
                                new BasicElement<int> {Element = 5}
                            }
                };

            // Act
            var mapping = mapper.Map(new object[] {objectToMap});

            // Assert
            Assert.AreEqual(5, GetMappedPathFromCollection(mapping, 4, "Collection.Element"));
        }
        public void MapPathToStringInLinkedListCollectionOfGenericElements()
        {
            // Arrange
            var mapper = CreateMapper<BasicListElement<BasicElement<string>>>(new[] { "Collection.Element" });
            var objectToMap = new BasicListElement<BasicElement<string>>
                {
                    Collection =
                        new[]
                            {
                                new BasicElement<string> {Element = "1"}, new BasicElement<string> {Element = "2"},
                                new BasicElement<string> {Element = "3"}, new BasicElement<string> {Element = "4"},
                                new BasicElement<string> {Element = "5"}
                            }
                };

            // Act
            var mapping = mapper.Map(new object[] {objectToMap});

            // Assert
            Assert.AreEqual("5", GetMappedPathFromCollection(mapping, 4, "Collection.Element"));
        }