Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions plugins/dotnet-test/skills/writing-mstest-tests/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
name: writing-mstest-tests
description: >
Write, create, modernize, or fix comprehensive MSTest unit tests with MSTest 3.x/4.x APIs.
USE FOR: write or create MSTest unit tests, fix/modernize MSTest assertions,
better MSTest assertion than Assert.IsTrue, replace hard cast with type check (IsInstanceOfType),
USE FOR: write, create, review, or modernize MSTest tests and assertions,
better MSTest assertion than Assert.IsTrue, replace hard cast with IsInstanceOfType,
MSTest assertion APIs (Contains, ContainsSingle, HasCount, IsEmpty, IsNotEmpty, DoesNotContain,
AreSame, IsNull, StartsWith, EndsWith, MatchesRegex, IsGreaterThan, IsLessThan, IsInRange),
swapped Assert.AreEqual args, replace ExpectedException with Assert.Throws,
swapped/reversed Assert.AreEqual args (Expected/Actual backwards),
replace ExpectedException with Assert.Throws,
data-driven (DataRow, DynamicData, ValueTuples),
lifecycle (TestInitialize, TestCleanup, TestContext),
async tests and cancellation tokens, conditional execution/retry/cleanup (OSCondition, Retry),
async and cancellation tests, conditional execution/retry/cleanup (OSCondition, Retry),
parallelization (Parallelize/DoNotParallelize), MSTest.Sdk setup, MSTESTxxxx analyzer fixes.
DO NOT USE FOR: test quality audits (use test-anti-patterns),
running tests (use run-tests), MSTest version migration (use the migrate-mstest skills),
running tests (use run-tests), MSTest version migration (use migrate-mstest skills),
xUnit/NUnit/TUnit, or non-.NET languages.
license: MIT
---
Expand Down
2 changes: 1 addition & 1 deletion tests/dotnet-test/writing-mstest-tests/eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ scenarios:
- "Tests boundary conditions at grade thresholds (e.g., exactly 90 vs 89)"
- "Tests that NormalizeScore caps the result at 100 when rawScore exceeds maxRaw"
- "Seals the test class"
timeout: 240
timeout: 360

# ============================================================================
# Goal 7: Collection, null, and reference assertions
Expand Down
Loading