We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public interface IFoo { string this[int index] { get; set; } } var mock = new Mock<IFoo>(); mock.SetupProperty(m => m[1]);
In 4.11.0-rc1, the call to SetupProperty will raise an ArgumentException with the following nonsensical message:
SetupProperty
ArgumentException
Expression must be writeable Parameter name: left
The exception should include a more helpful exception message, like in 4.10.1:
Expression is not a property access: m => m[1]
The text was updated successfully, but these errors were encountered:
stakx
Successfully merging a pull request may close this issue.
Reproduction code:
Actual behavior:
In 4.11.0-rc1, the call to
SetupProperty
will raise anArgumentException
with the following nonsensical message:Expected behavior:
The exception should include a more helpful exception message, like in 4.10.1:
The text was updated successfully, but these errors were encountered: