Skip to content

Commit 5cc7f52

Browse files
unknownunknown
authored andcommitted
Enum bugfix
1 parent 2cbc860 commit 5cc7f52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ObjectFiller/Filler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,14 +423,14 @@ private object CreateAndFillObject(
423423
return this.CreateInstanceOfInterfaceOrAbstractClass(type, currentSetupItem, typeTracker);
424424
}
425425

426-
if (TypeIsPoco(type))
426+
if (this.TypeIsEnum(type))
427427
{
428-
return this.GetFilledPoco(type, currentSetupItem, typeTracker);
428+
return this.GetRandomEnumValue(type);
429429
}
430430

431-
if (this.TypeIsEnum(type))
431+
if (TypeIsPoco(type))
432432
{
433-
return this.GetRandomEnumValue(type);
433+
return this.GetFilledPoco(type, currentSetupItem, typeTracker);
434434
}
435435

436436
object newValue = this.GetRandomValue(type, currentSetupItem);

0 commit comments

Comments
 (0)