public void Map_ListIsTarget_Success()
        {
            var config = new HappyConfig(cfg => cfg.CreateMap <Src, Dest>());

            config.AssertConfigurationIsValid();
            var mapper = config.CompileMapper();


            var srcList = new List <Src>();

            srcList.Add(new Src {
                Value1 = Gen.Int()
            });
            srcList.Add(new Src {
                Value1 = Gen.Int()
            });
            srcList.Add(new Src {
                Value1 = Gen.Int()
            });

            List <Dest> destList = new List <Dest>();

            destList.Add(new Dest());
            destList.Add(new Dest());
            destList.Add(new Dest());

            mapper.Map(srcList, destList);

            ObjectComparer.AreEqualCollections(srcList, destList);
        }
        public void Map_ListToLinkedList_Success()
        {
            var config = new HappyConfig(cfg => cfg.CreateMap <Src, Dest>());

            config.AssertConfigurationIsValid();
            var mapper = config.CompileMapper();

            var src = new List <Src>();

            src.Add(new Src {
                Id = 1
            });

            var dest = mapper.Map <List <Src>, LinkedList <Dest> >(src);

            ObjectComparer.AreEqualCollections(src, dest);
        }