Skip to content
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

Added navigation to find references integration tests #56866

Merged
merged 2 commits into from
Sep 30, 2021

Conversation

akhera99
Copy link
Member

Fixes #55978

@akhera99 akhera99 requested a review from a team as a code owner September 29, 2021 23:23
VisualStudio.FindReferencesWindow.NavigateTo(activeWindowCaption, results[0], isPreview: false);
// Assert we are in the right file now
VisualStudio.Editor.Activate();
Assert.Equal("Class1.cs", VisualStudio.Shell.GetActiveWindowCaption());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you also assert the location in the file?

VisualStudio.FindReferencesWindow.NavigateTo(activeWindowCaption, results[0], isPreview: false);
// Assert we are in the right file now
VisualStudio.Editor.Activate();
Assert.Equal("Class1.vb", VisualStudio.Shell.GetActiveWindowCaption());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same?

@akhera99 akhera99 merged commit 12dda2d into dotnet:main Sep 30, 2021
@ghost ghost added this to the Next milestone Sep 30, 2021
@RikkiGibson RikkiGibson modified the milestones: Next, 17.1.P1 Oct 25, 2021
@akhera99 akhera99 deleted the bugs/55978_findrefs_integration_tests branch June 18, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Find refs integration tests need to verify navigation works
4 participants