Skip to content

Commit c7a3625

Browse files
committed
restore test
1 parent 5f65cda commit c7a3625

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Mapster.Tests/WhenMappingRecordRegression.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ public void AdaptRecordToRecord()
2121

2222
var _source = new TestRecord() { X = 700 };
2323
var _destination = new TestRecordY() { X = 500 , Y = 200 };
24-
2524
var _destination2 = new TestRecordY() { X = 300, Y = 400 };
26-
_source.Adapt(_destination);
27-
25+
26+
var _result = _source.AdaptToTarget(_destination);
2827
var result2 = _destination.AdaptToTarget(_destination2);
2928

30-
// _result.X.ShouldBe(700);
31-
// _result.Y.ShouldBe(200);
32-
// object.ReferenceEquals(_result, _destination).ShouldBeFalse();
29+
_result.X.ShouldBe(700);
30+
_result.Y.ShouldBe(200);
31+
object.ReferenceEquals(_result, _destination).ShouldBeFalse();
3332
}
3433

3534
[TestMethod]

0 commit comments

Comments
 (0)