예제 #1
0
            public void Can_merge_to_a_third_destination_type()
            {
                // Arrange
                var left = new LeftSide {
                    Name = "Test"
                };
                var right = new RightSide {
                    Age = 10
                };

                // Act
                var result = left.Merge <Destination, LeftSide, RightSide>(right);

                // Assert
                result.Should().NotBeNull();
                result.Name.Should().Be(left.Name);
                result.Age.Should().Be(right.Age);
            }