Closed li-zheng-hao closed 1 month ago
[Fact]
public void IgnoreNotExistPropertyPassed()
{
var source=new BDto()
{
F2 = "F2_source",
};
var target =
new B()
{
F2 = "F2_target",
F3 = "F3_target"
};
source.Adapt(target);
// passed
Assert.Equal("F3_target",target.F3);
}
here is a passed test case.
After looking at the source code, I think I know why this happened
Environment
Unit Test Case
Assert.Equal("F3_target",target.B.First().F3);
should be passed, but now it fails