示例#1
0
        public void Bind_Property_With_Expression_Binds()
        {
            var builder = new TypeBindingBuilder <Source, Target>();
            var binding = builder.Bind(t => t.Nested.StringType, s => s.Nested.StringType).BuildBinding();

            Assert.IsTrue(
                ContainsBinding(new[] {
                nameof(Source.Nested), nameof(Source.StringType)
            }, new[] {
                nameof(Target.Nested), nameof(Target.StringType)
            },
                                binding)
                );
        }