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
However, when I debug this, the lamba in …s.Pop()).Verifiable( is called immediately at Setup time. I expected it to be deferred to the time of verification because:
I can think of a use-case for that
I can concisely write a verification that I otherwise can't.
What then is the purpose of that overload, if not deferral? It seems its current use means that I might just as well run the code in the lambda on the line before the setup.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I expected this to work:
However, when I debug this, the lamba in
…s.Pop()).Verifiable(
is called immediately atSetup
time. I expected it to be deferred to the time of verification because:What then is the purpose of that overload, if not deferral? It seems its current use means that I might just as well run the code in the lambda on the line before the setup.
Beta Was this translation helpful? Give feedback.
All reactions