Skip to content

[WIP] Copilot Request#7586

Draft
Copilot wants to merge 1 commit intomainfrom
copilot/fix-6154722-65080725-371419c7-d9a0-45f5-b09b-aad7b7d1e669
Draft

[WIP] Copilot Request#7586
Copilot wants to merge 1 commit intomainfrom
copilot/fix-6154722-65080725-371419c7-d9a0-45f5-b09b-aad7b7d1e669

Conversation

Copy link
Contributor

Copilot AI commented Mar 20, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>MSTEST0049 False positive with expressions of Moq</issue_title>
<issue_description>## Describe the bug

When mocking an API, if an overload with the cancellation token exists, the rule will trigger

Version used

Latest

Steps To Reproduce

See https://github.com/microsoft/vstest/pull/15539/changes#diff-b72c57420168ad8dde36e79c1710bf4211a778e9c356582e8ee287bbee45041dR4
</issue_description>

<agent_instructions>I don't know if we have a better pattern but maybe when the API is part of an expression tree we should not report the diagnostic. </agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MSTEST0049 False positive with expressions of Moq

2 participants