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(); }
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(); }