File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/AutoMapper.Collection.Tests Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11using System . Collections . Generic ;
2+ using System . Linq ;
23using AutoMapper . EquivalencyExpression ;
34using FluentAssertions ;
45using Xunit ;
@@ -12,7 +13,6 @@ public void Should_not_throw_exception_for_nonexisting_types()
1213 {
1314 var configuration = new MapperConfiguration ( x =>
1415 {
15- //x.CreateMissingTypeMaps = false;
1616 x . AddCollectionMappers ( ) ;
1717 } ) ;
1818 IMapper mapper = new Mapper ( configuration ) ;
@@ -36,7 +36,10 @@ public void Should_not_throw_exception_for_nonexisting_types()
3636 }
3737 } ;
3838
39- mapper . Map < SystemViewModel > ( system ) ;
39+ var model = mapper . Map < SystemViewModel > ( system ) ;
40+ model . Name . Should ( ) . Be ( system . Name ) ;
41+ model . Contacts . Single ( ) . Name . Should ( ) . Be ( system . Contacts . Single ( ) . Name ) ;
42+ model . Contacts . Single ( ) . Emails . Single ( ) . Address . Should ( ) . Be ( system . Contacts . Single ( ) . Emails . Single ( ) . Address ) ;
4043 }
4144
4245 public class System
You can’t perform that action at this time.
0 commit comments