We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cbc860 commit 5cc7f52Copy full SHA for 5cc7f52
ObjectFiller/Filler.cs
@@ -423,14 +423,14 @@ private object CreateAndFillObject(
423
return this.CreateInstanceOfInterfaceOrAbstractClass(type, currentSetupItem, typeTracker);
424
}
425
426
- if (TypeIsPoco(type))
+ if (this.TypeIsEnum(type))
427
{
428
- return this.GetFilledPoco(type, currentSetupItem, typeTracker);
+ return this.GetRandomEnumValue(type);
429
430
431
- if (this.TypeIsEnum(type))
+ if (TypeIsPoco(type))
432
433
- return this.GetRandomEnumValue(type);
+ return this.GetFilledPoco(type, currentSetupItem, typeTracker);
434
435
436
object newValue = this.GetRandomValue(type, currentSetupItem);
0 commit comments