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.ShouldEqual(0); }
public void should_not_throw_InvalidOperationException() { Person[] personArr = new Person[] { }; People people = new People(personArr); var pmc = Mapper.Map<People, List<PersonModel>>(people); Assert.That(pmc, Is.Not.Null); Assert.That(pmc.Count, Is.EqualTo(0)); }
public People(Person[] people) { this.people = people; }