@@ -574,11 +574,12 @@ public record RegularCaseRecord(int Aaa, int Bbb, int Ccc, int Ddd);
574574
575575 [ Theory ]
576576 [ InlineData ( "\" AAA\" ,\" BBB\" ,\" CCC\" ,\" DDD\" " ) ]
577+ [ InlineData ( "Aaa,Bbb,Ccc,Ddd" ) ]
577578 [ InlineData ( "AAA,BBB,CCC,DDD" ) ]
578579 [ InlineData ( "aaa,bbb,ccc,ddd" ) ]
579580 [ InlineData ( "AAA , BBB , CCC , DDD" ) ]
580581 [ InlineData ( "A_AA,B_BB,C_CC,D_DD" ) ]
581- public void Read_csv_file_with_header_in_different_case_should_automatic_bind_mapping ( string header )
582+ public void Read_csv_file_with_autobind_should_match_header_case_insensitive ( string header )
582583 {
583584 // Arrange
584585
@@ -614,15 +615,15 @@ public void Read_csv_file_with_header_in_different_case_should_automatic_bind_ma
614615
615616 // Act
616617
617- var items = reader . ReadRecords < RegularCaseRecord > ( readOptions , skipMismatchedColumns : false ) ;
618+ var items = reader . ReadRecords < RegularCaseRecord > ( readOptions , skipUnmatchedColumns : false ) ;
618619
619620 // Assert
620621
621622 items . Should ( ) . BeEquivalentTo ( expected , cfg => cfg . WithStrictOrdering ( ) ) ;
622623 }
623624
624625 [ Fact ]
625- public void Read_csv_file_with_header_should_automatic_bind_support_additional_configuration ( )
626+ public void Read_csv_file_with_autobind_should_support_additional_configuration ( )
626627 {
627628 // Arrange
628629
@@ -658,7 +659,7 @@ public void Read_csv_file_with_header_should_automatic_bind_support_additional_c
658659
659660 // Act
660661
661- var items = reader . ReadRecords < RegularCaseRecord > ( readOptions , false , builder =>
662+ var items = reader . ReadRecords < RegularCaseRecord > ( readOptions , skipUnmatchedColumns : false , builder =>
662663 builder . DefaultTypeConvert ( x => int . Parse ( x ) * 10 ) ) ;
663664
664665 // Assert
@@ -667,7 +668,7 @@ public void Read_csv_file_with_header_should_automatic_bind_support_additional_c
667668 }
668669
669670 [ Fact ]
670- public void Read_csv_file_with_header_containing_nested_fields_should_automatic_bind_mapping ( )
671+ public void Read_csv_file_with_autobind_should_support_nested_fields ( )
671672 {
672673 // Arrange
673674
@@ -700,15 +701,15 @@ public void Read_csv_file_with_header_containing_nested_fields_should_automatic_
700701
701702 // Act
702703
703- var items = reader . ReadRecords < Person > ( readOptions , skipMismatchedColumns : false ) ;
704+ var items = reader . ReadRecords < Person > ( readOptions , skipUnmatchedColumns : false ) ;
704705
705706 // Assert
706707
707708 items . Should ( ) . BeEquivalentTo ( expected , cfg => cfg . WithStrictOrdering ( ) ) ;
708709 }
709710
710711 [ Fact ]
711- public void Read_csv_file_with_header_containing_inherited_fields_should_automatic_bind_mapping ( )
712+ public void Read_csv_file_with_autobind_should_support_inherited_properties ( )
712713 {
713714 // Arrange
714715
@@ -744,7 +745,7 @@ public void Read_csv_file_with_header_containing_inherited_fields_should_automat
744745
745746 // Act
746747
747- var items = reader . ReadRecords < PersonDerivated > ( readOptions , skipMismatchedColumns : true ) ;
748+ var items = reader . ReadRecords < PersonDerivated > ( readOptions , skipUnmatchedColumns : true ) ;
748749
749750 // Assert
750751
@@ -755,7 +756,7 @@ public void Read_csv_file_with_header_containing_inherited_fields_should_automat
755756 [ InlineData ( " " , false ) ]
756757 [ InlineData ( " " , true ) ]
757758 [ InlineData ( "BirthDay ; Name ; Mother.BirthDay; Mother.Name" , false ) ]
758- public void Read_csv_file_without_header_should_throw_when_automatic_bind_mapping ( string header , bool hasHeader )
759+ public void Read_csv_file_with_autobind_should_throw_when_missing_header ( string header , bool hasHeader )
759760 {
760761 // Arrange
761762
@@ -788,7 +789,7 @@ public void Read_csv_file_without_header_should_throw_when_automatic_bind_mappin
788789
789790 // Act
790791
791- var action = ( ) => reader . ReadRecords < Person > ( readOptions , skipMismatchedColumns : true ) ;
792+ var action = ( ) => reader . ReadRecords < Person > ( readOptions , skipUnmatchedColumns : true ) ;
792793
793794 // Assert
794795
0 commit comments