Skip to content

IgnoreInheritance does not work for reference types #85

Open
@HerrLoesch

Description

@HerrLoesch

I have following classes:

public class A 
{
    public  string Test { get; set; }
}

public class B
{
    public A MyA {get; set; }
}

public class C : B
{
    public string AnotherProperty {get;set;}
}

I have configured the filler as followed:

var filler = new Filler<C>();
filler.Setup().IgnoreInheritance();
var c = filler.Create();

I woul expect that Cs property "MyA" is null but its actually an empty A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions