Skip to content

feature: generate With methods using params arrays for list types #2021

Description

@RLittlesII

Given

public Fixture With(Dictionary<string, object> dictionary) => this.With(ref _dictionary, dictionary);

When

Generate

Then

public Fixture With(KeyValuePair<string, object> kvp) => this.With(ref _dictionary, kvp);
public Fixture With(params KeyValuePair<string, object>[] kvps) => this.With(ref _dictionary, kvps);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions