Is there any value in TestDelegate and ActualValueDelegate? #4823
Dreamescaper
started this conversation in
General
Replies: 1 comment
-
|
I think this is a great idea, thanks @Dreamescaper |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any reason not to use
ActionandFunc<T>instead? SinceActionandFunc<T>are natural types for delegates in C#, using other delegates causes some confusion, e.g. here:Since I'm passing a delegate to Assert method, I'd expect a delegate overload to be invoked. Instead, non-delegate
TActualoverload is used, and assertion fails - becausegetActualisFunc<string>, notActualValueDelegate<TActual>.Therefore, my question is. Would it make sense to to replace
TestDelegateandActualValueDelegatewithActionandFunc<T>in the next major version?Beta Was this translation helpful? Give feedback.
All reactions