示例#1
0
        public void SimpleIListToIListIsMappedCorrectly()
        {
            var mapper = new MemberMapper();

            var source = new SourceSimpleIListType
            {
                List = new List <string>
                {
                    "X"
                }
            };

            var result = mapper.Map <SourceSimpleIListType, DestinationSimpleIListType>(source);

            Assert.AreEqual(source.List.Count(), result.List.Count());
            Assert.AreEqual("X", result.List.Single());
        }
示例#2
0
        public void SimpleIListToIListIsMappedCorrectly()
        {
            var mapper = new MemberMapper();

              var source = new SourceSimpleIListType
              {
            List = new List<string>
            {
              "X"
            }
              };

              var result = mapper.Map<SourceSimpleIListType, DestinationSimpleIListType>(source);

              Assert.AreEqual(source.List.Count(), result.List.Count());
              Assert.AreEqual("X", result.List.Single());
        }