示例#1
0
        public void Convert_success()
        {
            var map = new MapItem <TestItem, int>("Id", x => x.ItemId)
            {
                Convert = x => x.Length
            };

            var result = map.Converter("test");

            Assert.That(result, Is.EqualTo(4));
        }