public void should_not_throw_InvalidOperationException()
 {
     Person[] personArr = new Person[] { };
     People people = new People(personArr);
     var pmc = Mapper.Map<People, List<PersonModel>>(people);
     pmc.ShouldNotBeNull();
     pmc.Count.ShouldBe(0);
 }
Пример #2
0
        public void MapsEnumerableTypes()
        {
            Person[] personArr = new[] { new Person() { Name = "Name" } };
            People people = new People(personArr);

            var pmc = Mapper.Map<People, List<PersonModel>>(people);

            pmc.ShouldNotBeNull();
            (pmc.Count == 1).ShouldBeTrue();
        }