Skip to content

Commit e0f8780

Browse files
committed
Fixed single field tests
1 parent ba4a83d commit e0f8780

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/TypeReifierTests.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,13 @@ protected static class PureStatic {
5555
public static List<string> staticStringList = null;
5656
}
5757

58-
protected class SingleFieldClass {
58+
protected class SingleInlineFieldClass {
59+
[ConfigMandatory, ConfigInline]
5960
public int SingleField = 0;
6061
}
6162

62-
protected class SingleListClass {
63+
protected class SingleInlineListClass {
64+
[ConfigMandatory, ConfigInline]
6365
public List<string> SingleList = null;
6466
}
6567

@@ -492,7 +494,7 @@ public void Array2DUpdatesInPlaceWhenRemovingItems() {
492494
public void SetsStruct() {
493495
var pc = ReifyString<ParentClass>(@"---
494496
nestedStruct:
495-
childIntKey: 1201
497+
childIntKey: 1201
496498
");
497499
Assert.That(pc.nestedStruct.childIntKey, Is.EqualTo(1201));
498500
}
@@ -970,7 +972,7 @@ public void CreateSingleFieldClass() {
970972
8342
971973
"
972974
, "TestFilename");
973-
var inst = new SingleFieldClass();
975+
var inst = new SingleInlineFieldClass();
974976
reifier.SetFieldsOnObject(ref inst, doc);
975977
Assert.That(inst.SingleField, Is.EqualTo(8342));
976978
}
@@ -982,7 +984,7 @@ public void CreateSingleListClass() {
982984
[a, b, c, d]
983985
"
984986
, "TestFilename");
985-
var inst = new SingleListClass();
987+
var inst = new SingleInlineListClass();
986988
reifier.SetFieldsOnObject(ref inst, doc);
987989
Assert.Multiple(() => {
988990
Assert.That(inst.SingleList[0], Is.EqualTo("a"));

0 commit comments

Comments
 (0)