We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58efada commit 58bed37Copy full SHA for 58bed37
1 file changed
src/Mapster.Tests/WhenUsingDestinationValue.cs
@@ -42,9 +42,11 @@ public void MapUsingDestinationValue()
42
public void MappingToReadonlyPropertyWhenPocoDetectRegression()
43
{
44
var studentDto = new StudentDtoOrigin { Name = "Marta" };
45
- var student = studentDto.Adapt<StudentOrigin>(); // No exception.
46
47
- student.Name.ShouldBe("John");
+ Should.NotThrow(() =>
+ {
48
+ var student = studentDto.Adapt<StudentOrigin>(); // No exception.
49
+ });
50
}
51
52
[TestMethod]
0 commit comments