-
-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
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
Setup with interpolated strings #821
Comments
Are you sure you didn't just miss a |
The above being said, yes, it seems entirely likely that the workaround might still be needed since you're in an expression tree context. Generally speaking, you shouldn't be including computations in setup expressions that aren't necessary / strictly relevant for that setup. |
Yes, |
Interesting. Thank you for your response. |
The following code does not work
moq.Setup(m => m.Get("something[{i}].Name")).Returns($"foo {i}");
I had to use this instead.
moq.Setup(m => m.Get("something[" + i + "].Name")).Returns($"foo {i}");
The text was updated successfully, but these errors were encountered: