BetterAutoMapper.Tests.BasicMappingTests.ShouldMapClassesTheOtherWay C# (CSharp) Méthode

ShouldMapClassesTheOtherWay() private méthode

private ShouldMapClassesTheOtherWay ( ) : void
Résultat 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);
        }