This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Which Visual Studio Code feature provides a tree view that lists every test case in your workspace and lets you run or debug them?
The Test Explorer view provided by the C# Dev Kit extension.
The Chat view in GitHub Copilot.
The Solution Explorer view.
You want to create a new xUnit test project in Visual Studio Code. What's the most direct way to do this?
Open the Command Palette and run .NET: New Project..., then select xUnit Test Project.
.NET: New Project...
xUnit Test Project
Right-click the editor and select Generate Code > Generate Tests.
Generate Code
Generate Tests
Open the Chat view and run the /newproject slash command.
/newproject
Which slash command in the Chat view generates unit tests for the code that's currently active in the editor?
/tests
/setupTests
/explain
What are the three built-in agents available in the GitHub Copilot Chat view?
Ask, Plan, and Agent.
Ask, Edit, and Agent.
Plan, Debug, and Agent.
Your team has a multi-step testing task: scaffold a new test project, generate tests across several application files, and run the tests. Which agent is best suited to autonomously complete this work?
The Agent.
The Ask agent.
The Plan agent.
You want GitHub Copilot to generate unit tests for the active file and write them directly into a test project. Which agent in the Chat view is the recommended starting point?
Agent.
Ask.
Plan.
A test file already contains several xUnit test methods. You want to quickly add tests for a few more edge cases by working directly in the editor. Which GitHub Copilot feature is the best fit?
Ghost text inline suggestions in the editor.
The /setupTests slash command in the Chat view.
The Plan agent in the Chat view.
A unit test fails in Test Explorer. What's the fastest way to ask GitHub Copilot to propose a fix for that specific failure?
Hover over the failing test in Test Explorer and select the Fix Test Failure button (sparkle icon).
Run the /setupTests slash command in the Chat view.
Right-click the test file and select Generate Code > Generate Tests.
You must answer all questions before checking your work.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?