Exemplo n.º 1
0
        public void WhenCallAppltThenExecuteDelegate()
        {
            var executed = false;
            var d        = new DelegatedApplier <MemberInfo, IPropertyMapper>(x => true, x => executed = true);

            d.Apply(null, null);
            executed.Should().Be.True();
        }
Exemplo n.º 2
0
        public void WhenCallMatchThenExecuteDelegate()
        {
            var executed = false;
            var d        = new DelegatedApplier <MemberInfo, IPropertyMapper>(x => { executed = true; return(true); }, x => { });

            d.Match(null).Should().Be.True();
            executed.Should().Be.True();
        }