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
Passing a delegate with an incorrect signature to a method like ReturnsLazily, Invokes, etc. results in an error at runtime. This error is thrown when the faked method is called, not when it's configured, making it difficult to locate the origin of the problem (unfortunately it's not possible to check the signature at configuration time).
It would be much better to detect this at design/compile time, using a Roslyn analyzer.
Id: FakeItEasy0008 (assuming we also implement FakeItEasy0007) Title: Incorrect delegate signature. Message: Incorrect delegate signature. The faked method has the signature , but was used with . Severity: Error
We could try to implement a code fix for this; not sure how hard that would be.
The text was updated successfully, but these errors were encountered:
Passing a delegate with an incorrect signature to a method like
ReturnsLazily
,Invokes
, etc. results in an error at runtime. This error is thrown when the faked method is called, not when it's configured, making it difficult to locate the origin of the problem (unfortunately it's not possible to check the signature at configuration time).It would be much better to detect this at design/compile time, using a Roslyn analyzer.
Id: FakeItEasy0008 (assuming we also implement
FakeItEasy0007
)Title: Incorrect delegate signature.
Message: Incorrect delegate signature. The faked method has the signature , but was used with .
Severity: Error
We could try to implement a code fix for this; not sure how hard that would be.
The text was updated successfully, but these errors were encountered: