예제 #1
0
        public void Ignore_MemberInfo_AddsToSender()
        {
            var member = GetDestInfo(c => c.Child);

            _collection.IgnoreMember(member);
            var setter = _collection.Setters.First(m => m.DestinationMember.First() == member);

            Assert.IsNotNull(setter);
            Assert.IsTrue(setter.IsMapped);
            Assert.IsTrue(setter.IsIgnored);
            Assert.IsFalse(_collection.Unmapped.Destination.Any(c => c.Name == member.Name));
        }