You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This passes, but it'd be better to fail on "When I invoke it" "And I configure it to call its base method".
[Scenario]publicstaticvoidCannotBeConfiguredToCallBaseMethod(Actionfake,Exceptionexception){"Given a fake delegate".x(()=>fake= A.Fake<Action>());"And I configure it to call its base method".x(()=> A.CallTo(()=> fake.Invoke()).CallsBaseMethod());"When I invoke it".x(()=>exception= Record.Exception(()=> fake.Invoke()));"Then it throws".x(()=> exception.Should().BeAnExceptionOfType<NotSupportedException>().WithMessage("Can not configure a delegate proxy to call base method."));}
The text was updated successfully, but these errors were encountered:
This passes, but it'd be better to fail on
"When I invoke it""And I configure it to call its base method".The text was updated successfully, but these errors were encountered: