Repository navigation
Update canonical spec unit test example from xUnit to MSTest - #55092
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the canonical CLI spec’s “Running unit tests” scenario to use MSTest instead of xUnit as part of the ongoing test framework migration.
Changes:
- Narrative text now refers to MSTest rather than xUnit.
- Replaces the example project creation command with
dotnet new mstest. - Rewrites the sample test to MSTest attributes/assertions (
[TestClass]/[TestMethod],Assert.IsTrue).
Show a summary per file
| File | Description |
|---|---|
| documentation/specs/canonical.md | Updates the unit test walkthrough from xUnit to MSTest, including command and sample test code. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 1
Comment on lines
228
to
231
| /> dotnet new mstest | ||
| Created "tests" MSTest test project in "tests". | ||
|
|
||
| /tests> |
Member
Author
There was a problem hiding this comment.
Good catch — fixed in 38c9fac. Added -o tests so the command matches the /tests> prompt that follows.
Evangelink
enabled auto-merge
July 1, 2026 10:08
Co-authored-by: Copilot App <[email protected]>
YuliiaKovalova
approved these changes
Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
As part of the migration from xUnit to MSTest, this updates and cleans up the "Running unit tests" scenario in
documentation/specs/canonical.md.Changes
dotnet new tests --type xunitwithdotnet new mstest.[TestClass]/[TestMethod]andAssert.IsTrue, with theMicrosoft.VisualStudio.TestTools.UnitTestingnamespace (and dropped the now-unusedSystemusing).The restore and
dotnet teststeps were already framework-agnostic and left unchanged.