Skip to content

Unable to fake immutable collection properties #111

@gnalvesteffer

Description

@gnalvesteffer

When attempting to fake types that have immutable collection properties (i.e. IImmutableList), AutoFaker.Generate<T>() throws an exception due to not being able to find a parameterless constructor for the immutable type, since immutable collections are instead created via the type's .Create() method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions