Beispiel #1
0
        public async Task ModelToModel_正常情況_非同步()
        {
            var result = await source.MapAsync <TargetModel, SourceModel>();

            Assert.AreEqual(source.DecimalProp, result.DecimalProp);
            Assert.AreEqual(source.DoubleProp, result.DoubleProp);
            Assert.AreEqual(source.IntegerProp, result.IntegerProp);
            Assert.AreEqual(source.LongProp, result.LongProp);
            Assert.AreEqual(source.BooleanProp, result.BooleanProp);
            Assert.AreEqual(source.StringProp, result.StringProp);
            Assert.AreEqual(source.DateTimeProp, result.DateTimeProp);
        }