BetterAutoMapper.Tests.BasicMappingTests.ShouldMapClassesTheOtherWay C# (CSharp) Method

ShouldMapClassesTheOtherWay() private method

private ShouldMapClassesTheOtherWay ( ) : void
return void
        public void ShouldMapClassesTheOtherWay()
        {
            var jared = new Jared { FirstName = "Jared!" };

            var john = new BetterAutoMapper().Map<Jared, John>(jared);

            Assert.Equal(john.FirstName, "Jared!");
            Assert.Equal(john.LastName, null);
        }