@@ -55,11 +55,13 @@ protected static class PureStatic {
55
55
public static List < string > staticStringList = null ;
56
56
}
57
57
58
- protected class SingleFieldClass {
58
+ protected class SingleInlineFieldClass {
59
+ [ ConfigMandatory , ConfigInline ]
59
60
public int SingleField = 0 ;
60
61
}
61
62
62
- protected class SingleListClass {
63
+ protected class SingleInlineListClass {
64
+ [ ConfigMandatory , ConfigInline ]
63
65
public List < string > SingleList = null ;
64
66
}
65
67
@@ -492,7 +494,7 @@ public void Array2DUpdatesInPlaceWhenRemovingItems() {
492
494
public void SetsStruct ( ) {
493
495
var pc = ReifyString < ParentClass > ( @"---
494
496
nestedStruct:
495
- childIntKey: 1201
497
+ childIntKey: 1201
496
498
" ) ;
497
499
Assert . That ( pc . nestedStruct . childIntKey , Is . EqualTo ( 1201 ) ) ;
498
500
}
@@ -970,7 +972,7 @@ public void CreateSingleFieldClass() {
970
972
8342
971
973
"
972
974
, "TestFilename" ) ;
973
- var inst = new SingleFieldClass ( ) ;
975
+ var inst = new SingleInlineFieldClass ( ) ;
974
976
reifier . SetFieldsOnObject ( ref inst , doc ) ;
975
977
Assert . That ( inst . SingleField , Is . EqualTo ( 8342 ) ) ;
976
978
}
@@ -982,7 +984,7 @@ public void CreateSingleListClass() {
982
984
[a, b, c, d]
983
985
"
984
986
, "TestFilename" ) ;
985
- var inst = new SingleListClass ( ) ;
987
+ var inst = new SingleInlineListClass ( ) ;
986
988
reifier . SetFieldsOnObject ( ref inst , doc ) ;
987
989
Assert . Multiple ( ( ) => {
988
990
Assert . That ( inst . SingleList [ 0 ] , Is . EqualTo ( "a" ) ) ;
0 commit comments